Bug 1657889
Summary: | [OSP10] service hostname gets updated to fqdn make already spawned instance fail to start | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Martin Schuppert <mschuppe> |
Component: | puppet-tripleo | Assignee: | Martin Schuppert <mschuppe> |
Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 10.0 (Newton) | CC: | dhill, ebarrera, jjoyce, jschluet, lyarwood, mburns, slinaber, tvignaud |
Target Milestone: | z11 | Keywords: | Triaged, ZStream |
Target Release: | 10.0 (Newton) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | puppet-tripleo-5.6.8-22.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-04-30 16:58:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Schuppert
2018-12-10 16:32:24 UTC
We probably could just do 3) and in a later step remove old service entries (could be a manual cleanup step). 3) update the instance to reference the new host ( OS-EXT-SRV-ATTR:host and OS-EXT-SRV-ATTR:hypervisor_hostname) Note: also ovs agent might need an update on the ports bindings, depending on the network type used: MariaDB [ovs_neutron]> select * from ml2_port_bindings; +--------------------------------------+--------------------------+----------+-----------+---------+---------------------------------------------------------------------------+--------+ | port_id | host | vif_type | vnic_type | profile | vif_details | status | +--------------------------------------+--------------------------+----------+-----------+---------+---------------------------------------------------------------------------+--------+ | b0d10735-21e2-47aa-8c50-9124d30577b3 | compute-1.localdomain | ovs | normal | | {"port_filter": true, "datapath_type": "system", "ovs_hybrid_plug": true} | ACTIVE | | f8d6edb4-b5a3-4761-b9d6-4655c97d34cc | controller-0.localdomain | ovs | normal | | {"port_filter": true, "datapath_type": "system", "ovs_hybrid_plug": true} | ACTIVE | +--------------------------------------+--------------------------+----------+-----------+---------+---------------------------------------------------------------------------+--------+ 2 rows in set (0.00 sec) step 3 is enough. 4 instances on two computes: MariaDB [nova]> select created_at,updated_at,deleted_at,id,host,node from instances; +---------------------+---------------------+---------------------+----+-----------+-----------------------+ | created_at | updated_at | deleted_at | id | host | node | +---------------------+---------------------+---------------------+----+-----------+-----------------------+ | 2018-12-11 09:59:10 | 2018-12-11 10:06:04 | 2018-12-11 10:06:04 | 1 | NULL | NULL | | 2018-12-11 09:59:14 | 2018-12-11 10:06:04 | 2018-12-11 10:06:05 | 2 | NULL | NULL | | 2018-12-11 09:59:19 | 2018-12-11 10:06:05 | 2018-12-11 10:06:05 | 3 | NULL | NULL | | 2018-12-11 09:59:24 | 2018-12-11 10:06:05 | 2018-12-11 10:06:06 | 4 | NULL | NULL | | 2018-12-11 10:06:14 | 2018-12-11 10:09:24 | 2018-12-11 10:09:24 | 5 | NULL | NULL | | 2018-12-11 10:09:29 | 2018-12-11 10:19:22 | NULL | 6 | compute-0 | compute-0.localdomain | | 2018-12-11 10:09:44 | 2018-12-11 10:16:45 | NULL | 7 | compute-1 | compute-1.localdomain | | 2018-12-11 10:09:48 | 2018-12-11 10:16:48 | NULL | 8 | compute-1 | compute-1.localdomain | | 2018-12-11 10:09:52 | 2018-12-11 10:16:51 | NULL | 9 | compute-0 | compute-0.localdomain | +---------------------+---------------------+---------------------+----+-----------+-----------------------+ 9 rows in set (0.00 sec) $ nova show test1 +--------------------------------------+----------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-0 | | OS-EXT-SRV-ATTR:hostname | test1 | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.localdomain | | OS-EXT-SRV-ATTR:instance_name | instance-00000006 | Update host column and set the host to the fqdn we have in node column: MariaDB [nova]> update instances set host=node where host <> node and deleted_at is NULL; MariaDB [nova]> select created_at,updated_at,deleted_at,id,host,node from instances; +---------------------+---------------------+---------------------+----+-----------------------+-----------------------+ | created_at | updated_at | deleted_at | id | host | node | +---------------------+---------------------+---------------------+----+-----------------------+-----------------------+ | 2018-12-11 09:59:10 | 2018-12-11 10:06:04 | 2018-12-11 10:06:04 | 1 | NULL | NULL | | 2018-12-11 09:59:14 | 2018-12-11 10:06:04 | 2018-12-11 10:06:05 | 2 | NULL | NULL | | 2018-12-11 09:59:19 | 2018-12-11 10:06:05 | 2018-12-11 10:06:05 | 3 | NULL | NULL | | 2018-12-11 09:59:24 | 2018-12-11 10:06:05 | 2018-12-11 10:06:06 | 4 | NULL | NULL | | 2018-12-11 10:06:14 | 2018-12-11 10:09:24 | 2018-12-11 10:09:24 | 5 | NULL | NULL | | 2018-12-11 10:09:29 | 2018-12-11 10:19:22 | NULL | 6 | compute-0.localdomain | compute-0.localdomain | | 2018-12-11 10:09:44 | 2018-12-11 10:16:45 | NULL | 7 | compute-1.localdomain | compute-1.localdomain | | 2018-12-11 10:09:48 | 2018-12-11 10:16:48 | NULL | 8 | compute-1.localdomain | compute-1.localdomain | | 2018-12-11 10:09:52 | 2018-12-11 10:16:51 | NULL | 9 | compute-0.localdomain | compute-0.localdomain | +---------------------+---------------------+---------------------+----+-----------------------+-----------------------+ 9 rows in set (0.00 sec) $ nova show test1 +--------------------------------------+----------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute-0.localdomain | | OS-EXT-SRV-ATTR:hostname | test1 | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.localdomain | | OS-EXT-SRV-ATTR:instance_name | instance-00000006 | $ nova reset-state --active test1 Reset state for server test1 succeeded; new state is active $ nova stop test1 Request to stop server test1 has been accepted. $ nova start test1 Request to start server test1 has been accepted. Afterwards we can cleanup the down service entries: $ nova service-list +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+ | 5 | nova-consoleauth | controller-0.localdomain | internal | enabled | up | 2018-12-11T10:27:47.000000 | - | | 6 | nova-scheduler | controller-0.localdomain | internal | enabled | up | 2018-12-11T10:27:43.000000 | - | | 7 | nova-conductor | controller-0.localdomain | internal | enabled | up | 2018-12-11T10:27:44.000000 | - | | 11 | nova-compute | compute-0 | nova | enabled | down | 2018-12-11T10:17:07.000000 | - | | 12 | nova-compute | compute-1 | nova | enabled | down | 2018-12-11T10:17:42.000000 | - | | 13 | nova-compute | compute-0.localdomain | nova | enabled | up | 2018-12-11T10:27:46.000000 | - | | 14 | nova-compute | compute-1.localdomain | nova | enabled | up | 2018-12-11T10:27:44.000000 | - | +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+ $ nova service-delete 11 $ nova service-delete 12 Note: seems neutron using ovs is not that strict in host reference for the port mapping if the host= entry changes in neutron.conf on the compute. Networking still works with short hostname as host reference for the ports. New ports get fqdn reference: MariaDB [ovs_neutron]> select * from ml2_port_bindings; +--------------------------------------+--------------------------+----------+-----------+---------+------------------------------------------------+ | port_id | host | vif_type | vnic_type | profile | vif_details | +--------------------------------------+--------------------------+----------+-----------+---------+------------------------------------------------+ | 071aac12-2ead-48b3-ac25-89bd47f8827e | compute-1 | ovs | normal | | {"port_filter": true, "ovs_hybrid_plug": true} | | 65c4c4ee-10a6-4ee9-8bfe-2ca09d865932 | compute-0 | ovs | normal | | {"port_filter": true, "ovs_hybrid_plug": true} | | 95d8b3c9-52da-4a06-bd02-30b84e9558a1 | compute-1 | ovs | normal | | {"port_filter": true, "ovs_hybrid_plug": true} | | bc91eedf-3d24-4e99-8db4-ec079ed0337a | compute-1.localdomain | ovs | normal | | {"port_filter": true, "ovs_hybrid_plug": true} | | d5edb47a-cb3d-418a-90e0-78c49f1dbf62 | compute-0 | ovs | normal | | {"port_filter": true, "ovs_hybrid_plug": true} | | f0118f75-20c4-4ed9-891d-5498b7b1c20b | controller-0.localdomain | ovs | normal | | {"port_filter": true, "ovs_hybrid_plug": true} | +--------------------------------------+--------------------------+----------+-----------+---------+------------------------------------------------+ *** Bug 1641682 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0921 |