tricircle/juno-patches/nova/instance_mapping_uuid_patch
joey5678 7e3e60a34a Add/Modify some files
add an entry_point file, also modify a few readme-files

Change-Id: Ie7c69ff6e676254769dd4dc76a2f5b0906e61ae7
2014-11-25 16:00:50 +08:00
..
installation Transplant tricircle to juno version 2014-11-22 21:57:08 +08:00
nova Transplant tricircle to juno version 2014-11-22 21:57:08 +08:00
README.md Add/Modify some files 2014-11-25 16:00:50 +08:00

README.md

Nova instance mapping_uuid patch

add instance mapping_uuid attribute patch,it will be patched in cascading level's control node

How can we manage the servers in cascading level? To solve this problem,nova proxy must can get relation of cascading and cascaded server.So we can do this through adding instance attribute mapping_uuid

Key modules

  • adding mapping_uuid column in nova instance table,when nova synchronizes db:

    nova\db\sqlalchemy\migrate_repo\versions\234_add_mapping_uuid_column_to_instance.py nova\db\sqlalchemy\models.py nova-2014.1\nova\objects\instance.py nova\network\neutronv2\api.py

  • allowing nova proxy update instance mapping_uuid through conductor nova\conductor\manager.py

Requirements

  • openstack of juno-version has been installed

Installation

We provide two ways to install the instance_mapping_uuid patch code. In this section, we will guide you through installing the instance_mapping_uuid patch.

  • Note:

    • Make sure you have an existing installation of Openstack Icehouse.
    • We recommend that you Do backup at least the following files before installation, because they are to be overwritten or modified:
  • Manual Installation

    • Make sure you have performed backups properly.

    • Navigate to the local repository and copy the contents in 'nova' sub-directory to the corresponding places in existing nova, e.g. cp -r $LOCAL_REPOSITORY_DIR/nova $NOVA_PARENT_DIR (replace the $... with actual directory name.)

    • synchronize the nova db.

      mysql -u root -p$MYSQL_PASS -e "DROP DATABASE if exists nova;
      CREATE DATABASE nova;
      GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY '$NOVA_PASSWORD';
      GRANT ALL PRIVILEGES ON *.* TO 'nova'@'%'IDENTIFIED BY '$NOVA_PASSWORD';
      nova-manage db sync
      
    • Done. The nova proxy should be working with a demo configuration.

  • Automatic Installation

    • Make sure you have performed backups properly.

    • Navigate to the installation directory and run installation script.

      cd $LOCAL_REPOSITORY_DIR/installation
      sudo bash ./install.sh
      

      (replace the $... with actual directory name.)