[Yahoo-eng-team] [Bug 2050837] [NEW] Emulated Trusted Platform Module (vTPM) in nova

2024-01-22 Thread Noel Ashford
Public bug reported:


This bug tracker is for errors with the documentation, use the following
as a template and remove or add fields as you see fit. Convert [ ] into
[x] to check boxes:

- [x] This doc is inaccurate in this way: There is no resource provider command 
+ the compute nodes do not seem to register these traits (assumed)
- [ ] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: 
input and output. 

If you have a troubleshooting or support issue, use the following
resources:

 - The mailing list: https://lists.openstack.org
 - IRC: 'openstack' channel on OFTC

---
Release: 28.1.0.dev183 on 2021-02-22 15:44:45
SHA: e03d3dab063fa8a525beeb1cdfa4390c90530210
Source: https://opendev.org/openstack/nova/src/doc/source/admin/emulated-tpm.rst
URL: https://docs.openstack.org/nova/latest/admin/emulated-tpm.html

** Affects: nova
 Importance: Undecided
 Status: New


** Tags: doc

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2050837

Title:
  Emulated Trusted Platform Module (vTPM) in nova

Status in OpenStack Compute (nova):
  New

Bug description:

  This bug tracker is for errors with the documentation, use the
  following as a template and remove or add fields as you see fit.
  Convert [ ] into [x] to check boxes:

  - [x] This doc is inaccurate in this way: There is no resource provider 
command + the compute nodes do not seem to register these traits (assumed)
  - [ ] This is a doc addition request.
  - [ ] I have a fix to the document that I can paste below including example: 
input and output. 

  If you have a troubleshooting or support issue, use the following
  resources:

   - The mailing list: https://lists.openstack.org
   - IRC: 'openstack' channel on OFTC

  ---
  Release: 28.1.0.dev183 on 2021-02-22 15:44:45
  SHA: e03d3dab063fa8a525beeb1cdfa4390c90530210
  Source: 
https://opendev.org/openstack/nova/src/doc/source/admin/emulated-tpm.rst
  URL: https://docs.openstack.org/nova/latest/admin/emulated-tpm.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2050837/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 2042744] Re: su -s /bin/sh -c "keystone-manage db_sync" keystone

2024-01-22 Thread Oskar Berggren
** Also affects: keystone (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/2042744

Title:
  su -s /bin/sh -c "keystone-manage db_sync" keystone

Status in OpenStack Identity (keystone):
  Confirmed
Status in keystone package in Ubuntu:
  New

Bug description:
  When I execute su -s /bin/sh -c "keystone-manage db_sync" keystone

  I am receiving below error

  Exception ignored in: 
  Traceback (most recent call last):
    File "/usr/lib/python3.10/logging/__init__.py", line 846, in 
_removeHandlerRef
    File "/usr/lib/python3.10/logging/__init__.py", line 226, in _acquireLock
    File "/usr/lib/python3.10/threading.py", line 164, in acquire
    File "/usr/lib/python3/dist-packages/eventlet/green/thread.py", line 34, in 
get_ident
  AttributeError: 'NoneType' object has no attribute 'getcurrent'

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/2042744/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 2050236] [NEW] Automatic L3 Agent Failover does not work for HA Routers

2024-01-22 Thread Simon Hensel
Public bug reported:

When enabling allow_automatic_l3agent_failover in the neutron config,
neutron does not automatically reschedule routers with the HA parameter.

In
https://github.com/openstack/neutron/blob/master/neutron/db/agentschedulers_db.py#L131,
neutron loads all downed agents into the down_bindings list and then
iterates over it.

This list gets populated in this method:
https://github.com/openstack/neutron/blob/master/neutron/objects/l3agent.py#L55

Here, a SQL query gets generated that specifically excludes routers that
have the HA-parameter  (l3_attrs.RouterExtraAttributes.ha) set to
something other than false or NULL.

This behavior has always been the case and got introduced in
https://github.com/openstack/neutron/commit/7e51f2aea517e1431b9a860c45761c057710f5b2#diff-c1382d923846002c27484cca55e555689da1e08c22f1f8a0343726fd881e86ce.

Is there a specific reason for why HA routers get excluded? If not, this
conditional in the SQL statement can be removed.

** Affects: neutron
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2050236

Title:
  Automatic L3 Agent Failover does not work for HA Routers

Status in neutron:
  New

Bug description:
  When enabling allow_automatic_l3agent_failover in the neutron config,
  neutron does not automatically reschedule routers with the HA
  parameter.

  In
  
https://github.com/openstack/neutron/blob/master/neutron/db/agentschedulers_db.py#L131,
  neutron loads all downed agents into the down_bindings list and then
  iterates over it.

  This list gets populated in this method:
  
https://github.com/openstack/neutron/blob/master/neutron/objects/l3agent.py#L55

  Here, a SQL query gets generated that specifically excludes routers
  that have the HA-parameter  (l3_attrs.RouterExtraAttributes.ha) set to
  something other than false or NULL.

  This behavior has always been the case and got introduced in
  
https://github.com/openstack/neutron/commit/7e51f2aea517e1431b9a860c45761c057710f5b2#diff-c1382d923846002c27484cca55e555689da1e08c22f1f8a0343726fd881e86ce.

  Is there a specific reason for why HA routers get excluded? If not,
  this conditional in the SQL statement can be removed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2050236/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 2050090] Re: doc build is broken with pillow>=10.0.0

2024-01-22 Thread Takashi Kajinami
*** This bug is a duplicate of bug 2026345 ***
https://bugs.launchpad.net/bugs/2026345

** This bug has been marked a duplicate of bug 2026345
   Sphinx raises 'ImageDraw' object has no attribute 'textsize' error

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2050090

Title:
  doc build is broken with pillow>=10.0.0

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===
  Since pillow in upper-constraints was bumped to >=10.0.0, doc build (tox -e 
docs) consistently fails with the following error.

  ```
  $ tox -e docs
  ...
  done
  WARNING: dot code 'seqdiag {\nAPI; Conductor; Scheduler; Source; 
Destination;\nedge_length = 300;\nspan_height = 15;\nactivation = 
none;\ndefault_note_color = white;\n\nAPI ->> Conductor [label = 
"cast", note = "resize_instance/migrate_server"];\nConductor => Scheduler 
[label = "MigrationTask", note = "select_destinations"];\nConductor -> 
Conductor [label = "TargetDBSetupTask"];\nConductor => Destination [label = 
"PrepResizeAtDestTask", note = "prep_snapshot_based_resize_at_dest"];\n
Conductor => Source [label = "PrepResizeAtSourceTask", note = 
"prep_snapshot_based_resize_at_source"];\nConductor => Destination [label = 
"FinishResizeAtDestTask", note = "finish_snapshot_based_resize_at_dest"];\n
Conductor -> Conductor [label = "FinishResizeAtDestTask", note = "update 
instance mapping"];\n}': 'ImageDraw' object has no attribute 'textsize'
  WARNING: dot code 'seqdiag {\nAPI; Conductor; Source;\nedge_length = 
300;\nspan_height = 15;\nactivation = none;\ndefault_note_color = 
white;\n\nAPI ->> Conductor [label = "cast (or call if deleting)", note = 
"confirm_snapshot_based_resize"];\n\n// separator to indicate everything 
after this is driven by ConfirmResizeTask\n=== ConfirmResizeTask ===\n\n
Conductor => Source [label = "call", note = 
"confirm_snapshot_based_resize_at_source"];\nConductor -> Conductor [note = 
"hard delete source cell instance"];\nConductor -> Conductor [note = 
"update target cell instance status"];\n\n}': 'ImageDraw' object has no 
attribute 'textsize'
  WARNING: dot code 'seqdiag {\nAPI; Conductor; Source; Destination;\n
edge_length = 300;\nspan_height = 15;\nactivation = none;\n
default_note_color = white;\n\nAPI ->> Conductor [label = "cast", note = 
"revert_snapshot_based_resize"];\n\n// separator to indicate everything 
after this is driven by RevertResizeTask\n=== RevertResizeTask ===\n\n
Conductor -> Conductor [note = "update records from target to source cell"];\n  
  Conductor -> Conductor [note = "update instance mapping"];\nConductor => 
Destination [label = "call", note = "revert_snapshot_based_resize_at_dest"];\n  
  Conductor -> Conductor [note = "hard delete target cell instance"];\n
Conductor => Source [label = "call", note = 
"finish_revert_snapshot_based_resize_at_source"];\n\n}': 'ImageDraw' object has 
no attribute 'textsize'
  WARNING: dot code 'seqdiag {\nAPI; Conductor; Scheduler; Source; 
Destination;\nedge_length = 300;\nspan_height = 15;\nactivation = 
none;\ndefault_note_color = white;\n\nAPI -> Conductor [label = "cast", 
note = "resize_instance/migrate_server"];\n   Conductor => Scheduler 
[label = "call", note = "select_destinations"];\n   Conductor -> 
Destination [label = "cast", note = "prep_resize"];\n   Source <- 
Destination [label = "cast", leftnote = "resize_instance"];\n   
Source -> Destination [label = "cast", note = "finish_resize"];\n}': 
'ImageDraw' object has no attribute 'textsize'
  WARNING: dot code 'seqdiag {\nAPI; Source;\nedge_length = 300;\n
span_height = 15;\nactivation = none;\ndefault_note_color = white;\n\n  
  API -> Source [label = "cast (or call if deleting)", note = 
"confirm_resize"];\n}': 'ImageDraw' object has no attribute 'textsize'
  WARNING: dot code 'seqdiag {\nAPI; Source; Destination;\nedge_length 
= 300;\nspan_height = 15;\nactivation = none;\ndefault_note_color = 
white;\n\nAPI -> Destination [label = "cast", note = "revert_resize"];\n
   Source <- Destination [label = "cast", leftnote = 
"finish_revert_resize"];\n}': 'ImageDraw' object has no attribute 'textsize'
  WARNING: dot code 'actdiag {\nbuild-spec -> send-spec -> send-reqs -> 
query -> return-rps ->\ncreate -> filter -> claim -> return-hosts -> 
send-hosts;\n\nlane conductor {\nlabel = "Conductor";\n
build-spec [label = "Build request spec object", height = 38];\n
send-spec [label = "Submit request spec to scheduler", height = 38];\n
send-hosts [label = "Submit list of suitable hosts to target cell", height = 
51];\n}\n\nlane scheduler {\nlabel = 

[Yahoo-eng-team] [Bug 2049622] Re: Some Port Properties Cannot Be Set

2024-01-22 Thread Rodolfo Alonso
Hello:

In order to be able to define the DNS records of a port, you need to enable the 
extension driver "dns":
  $ cat /etc/neutron/plugins/ml2/ml2_conf.ini
  [ml2]
  extension_drivers = ...,dns

You should also define a DNS domain different from the default one 
"openstacklocal.". This should be set in the neutron configuration:
  $ cat /etc/neutron/neutron.conf
  [DEFAULT]
  dns_domain = fistro.

Then you'll be able to define a DNS name per port.

Regards.


** Changed in: neutron
   Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2049622

Title:
  Some Port Properties Cannot Be Set

Status in neutron:
  Invalid

Bug description:
  Hi,

  Some port properties like dns-name cannot be set. We got mismatch
  error in some tempest tests as below. I debugged it and i saw that the
  dns-name properties cannot be set when creating a port. I checked with
  openstack cli commands and i saw dns-name properties cannot be set. I
  can set this properties in wallaby version.

  Openstack version: Zed
  Openstack cli version: 6.4.0

  Some Tempest Tests:
  
neutron_tempest_plugin.scenario.test_internal_dns.InternalDNSTest.test_create_and_update_port_with_dns_name
  
neutron_tempest_plugin.api.test_ports.PortsTestJSON.test_create_update_port_with_dns_domain
  
neutron_tempest_plugin.api.test_ports.PortsTestJSON.test_create_update_port_with_dns_name
  
neutron_tempest_plugin.api.test_revisions.TestRevisions.test_update_dns_domain_bumps_revision

  '''
  $ openstack port show b976b4c3-7fc6-430a-a587-33520a4b44c0
  
+-++
  | Field   | Value 
 |
  
+-++
  | admin_state_up  | UP
 |
  | allowed_address_pairs   |   
 |
  | binding_host_id |   
 |
  | binding_profile |   
 |
  | binding_vif_details |   
 |
  | binding_vif_type| unbound   
 |
  | binding_vnic_type   | normal
 |
  | created_at  | 2024-01-17T11:50:45Z  
 |
  | data_plane_status   | None  
 |
  | description |   
 |
  | device_id   |   
 |
  | device_owner|   
 |
  | device_profile  | None  
 |
  | dns_assignment  | fqdn='host-10-100-0-10.openstacklocal.', 
hostname='host-10-100-0-10', ip_address='10.100.0.10' |
  | dns_domain  |   
 |
  | dns_name|   
 |
  | extra_dhcp_opts |   
 |
  | fixed_ips   | ip_address='10.100.0.10', 
subnet_id='76262d47-90be-4182-9678-8eaa01661851' |
  | hints   |   
 |
  | id  | b976b4c3-7fc6-430a-a587-33520a4b44c0  
 |
  | ip_allocation   | None  
 |
  | mac_address | fa:16:3e:2c:02:19 
 |
  | name| tempest-internal-dns-test-port-853671869  
 |
  

[Yahoo-eng-team] [Bug 2050090] [NEW] doc build is broken with pillow>=10.0.0

2024-01-22 Thread Takashi Kajinami
Public bug reported:

Description
===
Since pillow in upper-constraints was bumped to >=10.0.0, doc build (tox -e 
docs) consistently fails with the following error.

```
$ tox -e docs
...
done
WARNING: dot code 'seqdiag {\nAPI; Conductor; Scheduler; Source; 
Destination;\nedge_length = 300;\nspan_height = 15;\nactivation = 
none;\ndefault_note_color = white;\n\nAPI ->> Conductor [label = 
"cast", note = "resize_instance/migrate_server"];\nConductor => Scheduler 
[label = "MigrationTask", note = "select_destinations"];\nConductor -> 
Conductor [label = "TargetDBSetupTask"];\nConductor => Destination [label = 
"PrepResizeAtDestTask", note = "prep_snapshot_based_resize_at_dest"];\n
Conductor => Source [label = "PrepResizeAtSourceTask", note = 
"prep_snapshot_based_resize_at_source"];\nConductor => Destination [label = 
"FinishResizeAtDestTask", note = "finish_snapshot_based_resize_at_dest"];\n
Conductor -> Conductor [label = "FinishResizeAtDestTask", note = "update 
instance mapping"];\n}': 'ImageDraw' object has no attribute 'textsize'
WARNING: dot code 'seqdiag {\nAPI; Conductor; Source;\nedge_length = 
300;\nspan_height = 15;\nactivation = none;\ndefault_note_color = 
white;\n\nAPI ->> Conductor [label = "cast (or call if deleting)", note = 
"confirm_snapshot_based_resize"];\n\n// separator to indicate everything 
after this is driven by ConfirmResizeTask\n=== ConfirmResizeTask ===\n\n
Conductor => Source [label = "call", note = 
"confirm_snapshot_based_resize_at_source"];\nConductor -> Conductor [note = 
"hard delete source cell instance"];\nConductor -> Conductor [note = 
"update target cell instance status"];\n\n}': 'ImageDraw' object has no 
attribute 'textsize'
WARNING: dot code 'seqdiag {\nAPI; Conductor; Source; Destination;\n
edge_length = 300;\nspan_height = 15;\nactivation = none;\n
default_note_color = white;\n\nAPI ->> Conductor [label = "cast", note = 
"revert_snapshot_based_resize"];\n\n// separator to indicate everything 
after this is driven by RevertResizeTask\n=== RevertResizeTask ===\n\n
Conductor -> Conductor [note = "update records from target to source cell"];\n  
  Conductor -> Conductor [note = "update instance mapping"];\nConductor => 
Destination [label = "call", note = "revert_snapshot_based_resize_at_dest"];\n  
  Conductor -> Conductor [note = "hard delete target cell instance"];\n
Conductor => Source [label = "call", note = 
"finish_revert_snapshot_based_resize_at_source"];\n\n}': 'ImageDraw' object has 
no attribute 'textsize'
WARNING: dot code 'seqdiag {\nAPI; Conductor; Scheduler; Source; 
Destination;\nedge_length = 300;\nspan_height = 15;\nactivation = 
none;\ndefault_note_color = white;\n\nAPI -> Conductor [label = "cast", 
note = "resize_instance/migrate_server"];\n   Conductor => Scheduler 
[label = "call", note = "select_destinations"];\n   Conductor -> 
Destination [label = "cast", note = "prep_resize"];\n   Source <- 
Destination [label = "cast", leftnote = "resize_instance"];\n   
Source -> Destination [label = "cast", note = "finish_resize"];\n}': 
'ImageDraw' object has no attribute 'textsize'
WARNING: dot code 'seqdiag {\nAPI; Source;\nedge_length = 300;\n
span_height = 15;\nactivation = none;\ndefault_note_color = white;\n\n  
  API -> Source [label = "cast (or call if deleting)", note = 
"confirm_resize"];\n}': 'ImageDraw' object has no attribute 'textsize'
WARNING: dot code 'seqdiag {\nAPI; Source; Destination;\nedge_length = 
300;\nspan_height = 15;\nactivation = none;\ndefault_note_color = 
white;\n\nAPI -> Destination [label = "cast", note = "revert_resize"];\n
   Source <- Destination [label = "cast", leftnote = 
"finish_revert_resize"];\n}': 'ImageDraw' object has no attribute 'textsize'
WARNING: dot code 'actdiag {\nbuild-spec -> send-spec -> send-reqs -> query 
-> return-rps ->\ncreate -> filter -> claim -> return-hosts -> 
send-hosts;\n\nlane conductor {\nlabel = "Conductor";\n
build-spec [label = "Build request spec object", height = 38];\n
send-spec [label = "Submit request spec to scheduler", height = 38];\n
send-hosts [label = "Submit list of suitable hosts to target cell", height = 
51];\n}\n\nlane scheduler {\nlabel = "Scheduler";\n
send-reqs [label = "Submit resource requirements to placement", height = 64];\n 
   create [label = "Create a HostState object for each RP returned from 
Placement", height = 64];\nfilter [label = "Filter and weigh results", 
height = 38];\nreturn-hosts [label = "Return a list of selected host & 
alternates, along with their allocations, to the conductor", height = 89];\n
}\n\nlane placement {\nlabel = "Placement";\nquery [labe
 l = "Query to 

[Yahoo-eng-team] [Bug 2050087] [NEW] Port cannot update to ACTIVE because it is not bound

2024-01-22 Thread Alessandro Italiano
Public bug reported:

Vm creation stack in building state until the timeout.
After further debugging I found that host is an empty string and vif_type is 
UNBOUND [1]

in particular host = '' trigger a return at [2]


Version
%:~# neutron-server --version
neutron-server 20.4.0
python3-neutron 2:20.4.0-0ubuntu1  
%:~# cat  /etc/issue
Ubuntu 22.04.3 LTS \n \l
puppet use to deploy the openstack instance


[1]
2024-01-22 09:37:58.672 3629917 DEBUG neutron.plugins.ml2.plugin 
[req-ccf9b607-743f-45b2-9246-961b0265e112 - - - - -] 
 
_port_provisioned 
/usr/lib/python3/dist-packages/neutron/plugins/ml2/plugin.py:360


[2]
https://github.com/openstack/neutron/blob/5ce17647c60448c9cae00ffc886d4e17a9fe0890/neutron/plugins/ml2/plugin.py#L372

** Affects: neutron
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2050087

Title:
  Port cannot update to ACTIVE because it is not bound

Status in neutron:
  New

Bug description:
  Vm creation stack in building state until the timeout.
  After further debugging I found that host is an empty string and vif_type is 
UNBOUND [1]

  in particular host = '' trigger a return at [2]


  Version
  %:~# neutron-server --version
  neutron-server 20.4.0
  python3-neutron 2:20.4.0-0ubuntu1  
  %:~# cat  /etc/issue
  Ubuntu 22.04.3 LTS \n \l
  puppet use to deploy the openstack instance

  
  [1]
  2024-01-22 09:37:58.672 3629917 DEBUG neutron.plugins.ml2.plugin 
[req-ccf9b607-743f-45b2-9246-961b0265e112 - - - - -] 
 
_port_provisioned 
/usr/lib/python3/dist-packages/neutron/plugins/ml2/plugin.py:360

  
  [2]
  
https://github.com/openstack/neutron/blob/5ce17647c60448c9cae00ffc886d4e17a9fe0890/neutron/plugins/ml2/plugin.py#L372

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2050087/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 2049231] Re: Nova fails to live migrate VMs even though source and destination hosts are the same

2024-01-22 Thread birbilakos
** Also affects: nova
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2049231

Title:
  Nova fails to live migrate VMs even though source and destination
  hosts are the same

Status in OpenStack Compute (nova):
  New
Status in nova-lxd:
  New

Bug description:
  I'm using ansible-openstack 2023.2 installation. Testing out the live
  migration feature via horizon, it fails to do the migration on
  identically spec'ed source and destination hosts:

  Error: Failed to live migrate instance to host "sjc-lnxserver-136".
  Details

  Migration pre-check error: Unacceptable CPU info: CPU doesn't have
  compatibility. 0 Refer to http://libvirt.org/html/libvirt-libvirt-
  host.html#virCPUCompareResult (HTTP 400) (Request-ID: req-a5ce90ec-
  bbd3-4130-b868-592897759b68)

  virsh caps is practically the same (expect the reported frequency) across 
both source and destination.
  
x86_64
Cascadelake-Server-noTSX
Intel








































  

  Any ideas?

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2049231/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1997352] Re: When REBUILDING from UEFI to non-UEFI instance ends up in ERROR state

2024-01-22 Thread Christian Rohmann
** Changed in: nova
   Status: Expired => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1997352

Title:
  When REBUILDING from UEFI to non-UEFI instance ends up in ERROR state

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  If an UEFI instance is REBUILDED using a non-UEFI image as a
  replacement via e.g.:

  # openstack server create --flavor c4.2xlarge --image
  ubuntu-22.04-x86_64-uefi --network mynetwork --key-name mykey ubuntu-
  uefi-test --security-group default

  # openstack server rebuild --image ubuntu-22.04-x86_64 ubuntu-uefi-
  test

  
  The instance ends up in an error state:

  ```
  Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/guest.py", line 285, 
in delete_configuration
  self._domain.undefineFlags(flags)
File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 193, in doit
  result = proxy_call(self._autowrap, f, *args, **kwargs)
File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 151, in 
proxy_call
  rv = execute(f, *args, **kwargs)
File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 132, in 
execute
  six.reraise(c, e, tb)
File "/usr/lib/python3/dist-packages/six.py", line 719, in reraise
  raise value
File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 86, in tworker
  rv = meth(*args, **kwargs)
File "/usr/lib/python3/dist-packages/libvirt.py", line 2924, in 
undefineFlags 
  if ret == -1: raise libvirtError (\'virDomainUndefineFlags() failed\', 
dom=self)
  libvirt.libvirtError: Requested operation is not valid: cannot undefine 
domain with nvram

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 200, in 
decorated_function
  return function(self, context, *args, **kwargs)
File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 3095, 
in terminate_instance
  do_terminate_instance(instance, bdms)
File "/usr/lib/python3/dist-packages/oslo_concurrency/lockutils.py", line 
360, in inner
  return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 3093, 
in do_terminate_instance
  self._set_instance_obj_error_state(instance)
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in 
__exit__
  self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in 
force_reraise
  raise self.value
File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 3083, 
in do_terminate_instance
  self._delete_instance(context, instance, bdms)
File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 3018, 
in _delete_instance
  self._shutdown_instance(context, instance, bdms)
File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 2910, 
in _shutdown_instance
  self._try_deallocate_network(context, instance,
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in 
__exit__
  self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in 
force_reraise
  raise self.value
   File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 2897, in 
_shutdown_instance
  self.driver.destroy(context, instance, network_info,
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 
1423, in destroy
  self.cleanup(context, instance, network_info, block_device_info,
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 
1493, in cleanup
  return self._cleanup(
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 
1585, in _cleanup
  self._undefine_domain(instance)
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 
1442, in _undefine_domain
  LOG.error(\'Error from libvirt during undefine. \'
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 227, in 
__exit__
  self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 200, in 
force_reraise
  raise self.value
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/driver.py", line 
1433, in _undefine_domain
  guest.delete_configuration(support_uefi)
File "/usr/lib/python3/dist-packages/nova/virt/libvirt/guest.py", line 289, 
in delete_configuration
  self._domain.undefine()
File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 193, in doit
  result = proxy_call(self._autowrap, f, *args, **kwargs)
File "/usr/lib/python3/dist-packages/eventlet/tpool.py", line 151, in 
proxy_call
  rv = execute(f, *args, **kwargs)
File