[openstack-dev] [OpenStack-Dev][Nova] - https://launchpad.net/bugs/1667794 Changing hostname not to be treated as a pattern instead exact match will be done.

nidhi.hada at wipro.com nidhi.hada at wipro.com
Thu Jul 27 05:17:59 UTC 2017


Thanks Matt,

Thanks for explaining this well.

and bug is being taken care by chris now.

Thanks
Nidhi


-----Original Message-----
From: Matt Riedemann [mailto:mriedemos at gmail.com]
Sent: Wednesday, July 26, 2017 10:06 PM
To: OpenStack Development Mailing List (not for usage questions) <openstack-dev at lists.openstack.org>
Subject: Re: [openstack-dev] [OpenStack-Dev][Nova] - https://launchpad.net/bugs/1667794 Changing hostname not to be treated as a pattern instead exact match will be done.

** This mail has been sent from an external source. Treat hyperlinks and attachments in this email with caution**

On 7/26/2017 11:34 AM, Matt Riedemann wrote:
> On 7/26/2017 11:23 AM, Matt Riedemann wrote:
>>
>> Given this, what else do you need? Please be clear about what your
>> use case is and how it is not solved using the 2.53 microversion.
>> There may need to be changes to the CLI but let's separate that
>> concern from the REST API changes.
>
> I think your issue might be with these commands which use the
> hypervisors.search python API binding in novaclient:
>
> 1. nova host-meta # Set or Delete metadata on all instances of a host.
> 2. nova host-evacuate # Evacuate all instances from failed host 3.
> nova host-evacuate-live # Live migrate all instances of the specified
> host (we should really rename this command since it doesn't 'evacuate'
> it live migrates)
> 4. nova host-servers-migrate # Cold migrate all instances off the
> specified host
>
> The risk with any of these is on the hostname match hitting more
> hypervisors than you wanted or expected. So if I have 10 computes in a
> London region in data center 1 named something like
> london.dc1.compute1.foo.bar, london.dc1.compute2.foo.bar, etc, and I do:
>
> nova host-evacuate london.dc1
>
> It's going to match all of those and evacuate instances from all of
> those dc1 computes in my london region at once, obviously probably not
> something you want, unless dc1 is being attacked by Harry Potter fans
> and you need to get those instances to another data center.
>
> The solution here is you specify the fully qualified domain name for
> the host you want to evacuate:
>
> nova host-evacuate london.dc1.compute1.foo.bar
>
> Right? What am I missing here?
>
> If you wanted to change the CLI to be more strict, we could do that by
> just adding a --strict_hostname option or something and fail if we get
> back more than one host, as a way to guard the operator from making a
> mistake.
>
> But none of this sounds like changes that need to be done in the REST
> API, and arguably isn't a bug in the CLI either.
>

Also, FYI in case you haven't read this:

https://clicktime.symantec.com/a/1/WpT1yeVBi7ncF0Ca_OTDe44XocFyzb3l8mmGaRh90eA=?d=15Eqjgzs0zz_nCSfkIZ03H85QhaaZ8qorwC1B6sNqR2qaif0YzQu9aDyucao9W0xq9TmblqjEa8vB_Uh6I73ZbcJ_aBt5DG4hUd_exR4jRYcFWvfIJ_1sJw7muMlygwsZvrfBDP-hVB_uXIw68-6qIXjtKoNEPSrkV-9tVoi_no3lioykWQyfYuIaypPH_lo9jcJ_725u3cfMocfzAqis4UJvyHrrMoOgOK2PklJIvKHbALogoTLSYmTFrN6xq8nf8PiICHVw-syDE_acSqDUCVN9XffaeX3bkJ_TyqUNTLd04O3ghc_JNsdgMV1bJLEoU802f-tZAa8ExalsfHb-X5N6KC9rAi-StOuSXqpZkLoPDifDeQoLG8KO46UxM7GC_SA_o-pD36JVzP2iPmxnbz1_pk1fg5pKYtsoxcsAHgdWlgYN-mKok_UuJXNYZci0i7D7_p-0RsbyTqrZNjuUU-O4a8j-fk0amKyj6FTVaJI-v-0kQ%3D%3D&u=http%3A%2F%2Fwww.danplanet.com%2Fblog%2F2016%2F03%2F03%2Fevacuate-in-nova-one-command-to-confuse-us-all%2F

--

Thanks,

Matt

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
https://clicktime.symantec.com/a/1/30lNRL8YgGNm4hBzvUlj4IRURgEORzz8xa3pXFvMfQk=?d=15Eqjgzs0zz_nCSfkIZ03H85QhaaZ8qorwC1B6sNqR2qaif0YzQu9aDyucao9W0xq9TmblqjEa8vB_Uh6I73ZbcJ_aBt5DG4hUd_exR4jRYcFWvfIJ_1sJw7muMlygwsZvrfBDP-hVB_uXIw68-6qIXjtKoNEPSrkV-9tVoi_no3lioykWQyfYuIaypPH_lo9jcJ_725u3cfMocfzAqis4UJvyHrrMoOgOK2PklJIvKHbALogoTLSYmTFrN6xq8nf8PiICHVw-syDE_acSqDUCVN9XffaeX3bkJ_TyqUNTLd04O3ghc_JNsdgMV1bJLEoU802f-tZAa8ExalsfHb-X5N6KC9rAi-StOuSXqpZkLoPDifDeQoLG8KO46UxM7GC_SA_o-pD36JVzP2iPmxnbz1_pk1fg5pKYtsoxcsAHgdWlgYN-mKok_UuJXNYZci0i7D7_p-0RsbyTqrZNjuUU-O4a8j-fk0amKyj6FTVaJI-v-0kQ%3D%3D&u=http%3A%2F%2Flists.openstack.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fopenstack-dev

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com


More information about the OpenStack-dev mailing list