<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi Danny,</div>
<div><br>
</div>
<div>check this link out. </div>
<div><a href="https://wiki.openstack.org/wiki/Scheduler_Filters">https://wiki.openstack.org/wiki/Scheduler_Filters</a></div>
<div><br>
</div>
<div>Add the following into your /etc/nova/nova.conf before starting the nova service.</div>
<div><br>
</div>
<div>
<div>scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, ServerGroupAntiAffinityFilter, ServerGroupAffinityFilter, AvailabilityZoneFilter</div>
</div>
<div><br>
</div>
<div>Or, You can do so in your local.conf</div>
<div>
<div>[[post-config|$NOVA_CONF]]</div>
<div>[DEFAULT]</div>
<div>pci_alias={"name":"cisco","vendor_id":"8086","product_id":"10ed"}</div>
</div>
<div>scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, ServerGroupAntiAffinityFilter, ServerGroupAffinityFilter, AvailabilityZoneFilter</div>
<div><br>
</div>
<div><br>
</div>
<div>—Robert</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div>
<div>On 12/22/14, 9:53 AM, "Danny Choi (dannchoi)" <<a href="mailto:dannchoi@cisco.com">dannchoi@cisco.com</a>> wrote:</div>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div style="font-family: Consolas; font-size: medium;">Hi Joe,</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">No, I did not.  I’m not aware of this.</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">Can you tell me exactly what needs to be done?</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">Thanks,</div>
<div style="font-family: Consolas; font-size: medium;">Danny</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">------------------------------</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">Date: Sun, 21 Dec 2014 11:42:02 -0600</div>
<div style="font-family: Consolas; font-size: medium;">From: Joe Cropper <<a href="mailto:cropper.joe@gmail.com">cropper.joe@gmail.com</a>></div>
<div style="font-family: Consolas; font-size: medium;">To: "OpenStack Development Mailing List (not for usage questions)"</div>
<div style="font-family: Consolas; font-size: medium;"><span class="Apple-tab-span" style="white-space: pre;"></span><<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>></div>
<div style="font-family: Consolas; font-size: medium;">Subject: Re: [openstack-dev] [qa] host aggregate's availability zone</div>
<div style="font-family: Consolas; font-size: medium;">Message-ID: <<a href="mailto:B36D2234-BEE0-4C7B-A2B2-A09CC9098416@gmail.com">B36D2234-BEE0-4C7B-A2B2-A09CC9098416@gmail.com</a>></div>
<div style="font-family: Consolas; font-size: medium;">Content-Type: text/plain; charset="utf-8"</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">Did you enable the AvailabilityZoneFilter in nova.conf that the scheduler uses?  And enable the FilterScheduler?  These are two common issues related to this.</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<div style="font-family: Consolas; font-size: medium;">- Joe</div>
<div style="font-family: Consolas; font-size: medium;"><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="font-family: Consolas; font-size: medium; border-left-color: rgb(181, 196, 223); border-left-width: 5px; border-left-style: solid; padding: 0px 0px 0px 5px; margin: 0px 0px 0px 5px;">
<div>On Dec 21, 2014, at 10:28 AM, Danny Choi (dannchoi) <<a href="mailto:dannchoi@cisco.com">dannchoi@cisco.com</a>> wrote:</div>
<div></div>
<div>Hi,</div>
<div></div>
<div>I have a multi-node setup with 2 compute hosts, qa5 and qa6.</div>
<div></div>
<div>I created 2 host-aggregate, each with its own availability zone, and assigned one compute host:</div>
<div></div>
<div>localadmin@qa4:~/devstack$ nova aggregate-details host-aggregate-zone-1</div>
<div>+----+-----------------------+-------------------+-------+--------------------------+</div>
<div>| Id | Name                  | Availability Zone | Hosts | Metadata                 |</div>
<div>+----+-----------------------+-------------------+-------+--------------------------+</div>
<div>| 9  | host-aggregate-zone-1 | az-1              | 'qa5' | 'availability_zone=az-1' |</div>
<div>+----+-----------------------+-------------------+-------+--------------------------+</div>
<div>localadmin@qa4:~/devstack$ nova aggregate-details host-aggregate-zone-2</div>
<div>+----+-----------------------+-------------------+-------+--------------------------+</div>
<div>| Id | Name                  | Availability Zone | Hosts | Metadata                 |</div>
<div>+----+-----------------------+-------------------+-------+--------------------------+</div>
<div>| 10 | host-aggregate-zone-2 | az-2              | 'qa6' | 'availability_zone=az-2' |</div>
<div>+----+-----------------------+-------------------+-------+?????????????+</div>
<div></div>
<div>My intent is to control at which compute host to launch a VM via the host-aggregate?s availability-zone parameter.</div>
<div></div>
<div>To test, for vm-1, I specify --availiability-zone=az-1, and --availiability-zone=az-2 for vm-2:</div>
<div></div>
<div>localadmin@qa4:~/devstack$ nova boot --image cirros-0.3.2-x86_64-uec --flavor 1 --nic net-id=5da9d715-19fd-47c7-9710-e395b5b90442 --availability-zone az-1 vm-1</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| Property                             | Value                                                          |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| OS-DCF:diskConfig                    | MANUAL                                                         |</div>
<div>| OS-EXT-AZ:availability_zone          | nova                                                           |</div>
<div>| OS-EXT-SRV-ATTR:host                 | -                                                              |</div>
<div>| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                              |</div>
<div>| OS-EXT-SRV-ATTR:instance_name        | instance-00000066                                              |</div>
<div>| OS-EXT-STS:power_state               | 0                                                              |</div>
<div>| OS-EXT-STS:task_state                | -                                                              |</div>
<div>| OS-EXT-STS:vm_state                  | building                                                       |</div>
<div>| OS-SRV-USG:launched_at               | -                                                              |</div>
<div>| OS-SRV-USG:terminated_at             | -                                                              |</div>
<div>| accessIPv4                           |                                                                |</div>
<div>| accessIPv6                           |                                                                |</div>
<div>| adminPass                            | kxot3ZBZcBH6                                                   |</div>
<div>| config_drive                         |                                                                |</div>
<div>| created                              | 2014-12-21T15:59:03Z                                           |</div>
<div>| flavor                               | m1.tiny (1)                                                    |</div>
<div>| hostId                               |                                                                |</div>
<div>| id                                   | 854acae9-b718-4ea5-bc28-e0bc46378b60                           |</div>
<div>| image                                | cirros-0.3.2-x86_64-uec (61409a53-305c-4022-978b-06e55052875b) |</div>
<div>| key_name                             | -                                                              |</div>
<div>| metadata                             | {}                                                             |</div>
<div>| name                                 | vm-1                                                           |</div>
<div>| os-extended-volumes:volumes_attached | []                                                             |</div>
<div>| progress                             | 0                                                              |</div>
<div>| security_groups                      | default                                                        |</div>
<div>| status                               | BUILD                                                          |</div>
<div>| tenant_id                            | 84827057a7444354b0bff11566ccb80b                               |</div>
<div>| updated                              | 2014-12-21T15:59:03Z                                           |</div>
<div>| user_id                              | 9d5fd9947d154a2db396fce177f1f83c                               |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>localadmin@qa4:~/devstack$ nova boot --image cirros-0.3.2-x86_64-uec --flavor 1 --nic net-id=5da9d715-19fd-47c7-9710-e395b5b90442 --availability-zone az-2 vm-2</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| Property                             | Value                                                          |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| OS-DCF:diskConfig                    | MANUAL                                                         |</div>
<div>| OS-EXT-AZ:availability_zone          | nova                                                           |</div>
<div>| OS-EXT-SRV-ATTR:host                 | -                                                              |</div>
<div>| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                              |</div>
<div>| OS-EXT-SRV-ATTR:instance_name        | instance-00000067                                              |</div>
<div>| OS-EXT-STS:power_state               | 0                                                              |</div>
<div>| OS-EXT-STS:task_state                | scheduling                                                     |</div>
<div>| OS-EXT-STS:vm_state                  | building                                                       |</div>
<div>| OS-SRV-USG:launched_at               | -                                                              |</div>
<div>| OS-SRV-USG:terminated_at             | -                                                              |</div>
<div>| accessIPv4                           |                                                                |</div>
<div>| accessIPv6                           |                                                                |</div>
<div>| adminPass                            | 2kXQpV2u9TVv                                                   |</div>
<div>| config_drive                         |                                                                |</div>
<div>| created                              | 2014-12-21T15:59:55Z                                           |</div>
<div>| flavor                               | m1.tiny (1)                                                    |</div>
<div>| hostId                               |                                                                |</div>
<div>| id                                   | ce1b5dca-a844-4c59-bb00-39a617646c59                           |</div>
<div>| image                                | cirros-0.3.2-x86_64-uec (61409a53-305c-4022-978b-06e55052875b) |</div>
<div>| key_name                             | -                                                              |</div>
<div>| metadata                             | {}                                                             |</div>
<div>| name                                 | vm-2                                                           |</div>
<div>| os-extended-volumes:volumes_attached | []                                                             |</div>
<div>| progress                             | 0                                                              |</div>
<div>| security_groups                      | default                                                        |</div>
<div>| status                               | BUILD                                                          |</div>
<div>| tenant_id                            | 84827057a7444354b0bff11566ccb80b                               |</div>
<div>| updated                              | 2014-12-21T15:59:55Z                                           |</div>
<div>| user_id                              | 9d5fd9947d154a2db396fce177f1f83c                               |</div>
<div>+--------------------------------------+????????????????????????????????+</div>
<div></div>
<div>However, both VMs ended up at compute host qa5:</div>
<div></div>
<div>localadmin@qa4:~/devstack$ nova hypervisor-servers q</div>
<div>+--------------------------------------+-------------------+---------------+---------------------+</div>
<div>| ID                                   | Name              | Hypervisor ID | Hypervisor Hostname |</div>
<div>+--------------------------------------+-------------------+---------------+---------------------+</div>
<div>| 854acae9-b718-4ea5-bc28-e0bc46378b60 | instance-00000066 | 1             | qa5                 |</div>
<div>| ce1b5dca-a844-4c59-bb00-39a617646c59 | instance-00000067 | 1             | qa5                 |</div>
<div>+--------------------------------------+-------------------+---------------+---------------------+</div>
<div>localadmin@qa4:~/devstack$ nova show vm-1</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| Property                             | Value                                                          |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| OS-DCF:diskConfig                    | MANUAL                                                         |</div>
<div>| OS-EXT-AZ:availability_zone          | az-1                                                           |</div>
<div>| OS-EXT-SRV-ATTR:host                 | qa5                                                            |</div>
<div>| OS-EXT-SRV-ATTR:hypervisor_hostname  | qa5                                                            |</div>
<div>| OS-EXT-SRV-ATTR:instance_name        | instance-00000066                                              |</div>
<div>| OS-EXT-STS:power_state               | 1                                                              |</div>
<div>| OS-EXT-STS:task_state                | -                                                              |</div>
<div>| OS-EXT-STS:vm_state                  | active                                                         |</div>
<div>| OS-SRV-USG:launched_at               | 2014-12-21T16:03:15.000000                                     |</div>
<div>| OS-SRV-USG:terminated_at             | -                                                              |</div>
<div>| accessIPv4                           |                                                                |</div>
<div>| accessIPv6                           |                                                                |</div>
<div>| config_drive                         |                                                                |</div>
<div>| created                              | 2014-12-21T15:59:03Z                                           |</div>
<div>| flavor                               | m1.tiny (1)                                                    |</div>
<div>| hostId                               | 89119faac9345b51f185bd8b6c2e091644f1544cd523067ecce64613       |</div>
<div>| id                                   | 854acae9-b718-4ea5-bc28-e0bc46378b60                           |</div>
<div>| image                                | cirros-0.3.2-x86_64-uec (61409a53-305c-4022-978b-06e55052875b) |</div>
<div>| key_name                             | -                                                              |</div>
<div>| metadata                             | {}                                                             |</div>
<div>| name                                 | vm-1                                                           |</div>
<div>| os-extended-volumes:volumes_attached | []                                                             |</div>
<div>| private network                      | 10.0.0.70                                                      |</div>
<div>| progress                             | 0                                                              |</div>
<div>| security_groups                      | default                                                        |</div>
<div>| status                               | ACTIVE                                                         |</div>
<div>| tenant_id                            | 84827057a7444354b0bff11566ccb80b                               |</div>
<div>| updated                              | 2014-12-21T15:59:11Z                                           |</div>
<div>| user_id                              | 9d5fd9947d154a2db396fce177f1f83c                               |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>localadmin@qa4:~/devstack$ nova show vm-2</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| Property                             | Value                                                          |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div>| OS-DCF:diskConfig                    | MANUAL                                                         |</div>
<div>| OS-EXT-AZ:availability_zone          | az-1                                                           |</div>
<div>| OS-EXT-SRV-ATTR:host                 | qa5                                                            |</div>
<div>| OS-EXT-SRV-ATTR:hypervisor_hostname  | qa5                                                            |</div>
<div>| OS-EXT-SRV-ATTR:instance_name        | instance-00000067                                              |</div>
<div>| OS-EXT-STS:power_state               | 0                                                              |</div>
<div>| OS-EXT-STS:task_state                | spawning                                                       |</div>
<div>| OS-EXT-STS:vm_state                  | building                                                       |</div>
<div>| OS-SRV-USG:launched_at               | -                                                              |</div>
<div>| OS-SRV-USG:terminated_at             | -                                                              |</div>
<div>| accessIPv4                           |                                                                |</div>
<div>| accessIPv6                           |                                                                |</div>
<div>| config_drive                         |                                                                |</div>
<div>| created                              | 2014-12-21T15:59:55Z                                           |</div>
<div>| flavor                               | m1.tiny (1)                                                    |</div>
<div>| hostId                               | 89119faac9345b51f185bd8b6c2e091644f1544cd523067ecce64613       |</div>
<div>| id                                   | ce1b5dca-a844-4c59-bb00-39a617646c59                           |</div>
<div>| image                                | cirros-0.3.2-x86_64-uec (61409a53-305c-4022-978b-06e55052875b) |</div>
<div>| key_name                             | -                                                              |</div>
<div>| metadata                             | {}                                                             |</div>
<div>| name                                 | vm-2                                                           |</div>
<div>| os-extended-volumes:volumes_attached | []                                                             |</div>
<div>| private network                      | 10.0.0.71                                                      |</div>
<div>| progress                             | 0                                                              |</div>
<div>| security_groups                      | default                                                        |</div>
<div>| status                               | BUILD                                                          |</div>
<div>| tenant_id                            | 84827057a7444354b0bff11566ccb80b                               |</div>
<div>| updated                              | 2014-12-21T15:59:56Z                                           |</div>
<div>| user_id                              | 9d5fd9947d154a2db396fce177f1f83c                               |</div>
<div>+--------------------------------------+----------------------------------------------------------------+</div>
<div></div>
<div>Is it supposed to work this way?  Do I missed something here?</div>
<div></div>
<div>Thanks,</div>
<div>Danny</div>
<div>_______________________________________________</div>
<div>OpenStack-dev mailing list</div>
<div><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a></div>
<div><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></div>
</blockquote>
<div style="font-family: Consolas; font-size: medium;">-------------- next part --------------</div>
<div style="font-family: Consolas; font-size: medium;">An HTML attachment was scrubbed...</div>
<div style="font-family: Consolas; font-size: medium;">URL: <<a href="http://lists.openstack.org/pipermail/openstack-dev/attachments/20141221/5b4ed1d8/attachment-0001.html">http://lists.openstack.org/pipermail/openstack-dev/attachments/20141221/5b4ed1d8/attachment-0001.html</a>></div>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>