standalone fails on "create ovn mac adress for Standalone role nodes"

Bug #1927556 reported by Alex Schultz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Harald Jensås

Bug Description

Possibly related to the patches referenced in https://review.opendev.org/c/openstack/tripleo-quickstart-extras/+/783137

[stack@standalone-0 standalone-ansible-_2kopiua]$ sudo ansible-playbook -i inventory.yaml deploy_steps_playbook.yaml
[WARNING]: Skipping key (deprecated) in group (overcloud) as it is not a mapping, it is a <class 'ansible.parsing.yaml.objects.AnsibleUnicode'>

PLAY [External deployment step 0] **************************************************************************************************************************************************************************************
[WARNING]: tripleo_free run_once does not ensure a task is successful for a given playbook but rather it is only attempted to execute once.
[WARNING]: any_errors_fatal only stops any future tasks running on the host that fails with the tripleo_free strategy.
2021-05-06 21:39:12.422672 | 52540032-bc74-a10d-9ada-000000000009 | TASK | External deployment step 0
2021-05-06 21:39:12.461018 | 52540032-bc74-a10d-9ada-000000000009 | OK | External deployment step 0 | undercloud | result={
    "changed": false,
    "msg": "Use --start-at-task 'External deployment step 0' to resume from this task"
}
2021-05-06 21:39:12.461984 | 52540032-bc74-a10d-9ada-000000000009 | TIMING | External deployment step 0 | undercloud | 0:00:00.125250 | 0.04s
2021-05-06 21:39:12.523221 | 52540032-bc74-a10d-9ada-00000000000a | TIMING | include_tasks | undercloud | 0:00:00.186463 | 0.04s
2021-05-06 21:39:12.545727 | ec0646ea-d376-4277-aac4-02e4e9ff2918 | INCLUDED | /home/stack/standalone-ansible-_2kopiua/external_deploy_steps_tasks_step0.yaml | undercloud
2021-05-06 21:39:12.570734 | 52540032-bc74-a10d-9ada-0000000000fa | TASK | create ovn mac address for Standalone role nodes
2021-05-06 21:39:14.713463 | 52540032-bc74-a10d-9ada-0000000000fa | FATAL | create ovn mac address for Standalone role nodes | undercloud | error={"changed": false, "error": "Auth plugin requires parameters which were not given: auth_url", "msg": "ERROR: Failed creating OVN MAC address resources! Auth plugin requires parameters which were not given: auth_url", "success": false}
2021-05-06 21:39:14.715647 | 52540032-bc74-a10d-9ada-0000000000fa | TIMING | create ovn mac address for Standalone role nodes | undercloud | 0:00:02.378899 | 2.14s

PLAY RECAP *************************************************************************************************************************************************************************************************************
undercloud : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

2021-05-06 21:39:14.747194 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-05-06 21:39:14.747551 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Total Tasks: 3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-05-06 21:39:14.747882 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elapsed Time: 0:00:02.411135 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-05-06 21:39:14.748174 | UUID | Info | Host | Task Name | Run Time
2021-05-06 21:39:14.748539 | 52540032-bc74-a10d-9ada-0000000000fa | SUMMARY | undercloud | create ovn mac address for Standalone role nodes | 2.14s
2021-05-06 21:39:14.748833 | 52540032-bc74-a10d-9ada-00000000000a | SUMMARY | undercloud | include_tasks | 0.04s
2021-05-06 21:39:14.749139 | 52540032-bc74-a10d-9ada-000000000009 | SUMMARY | undercloud | External deployment step 0 | 0.04s
2021-05-06 21:39:14.749446 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ End Summary Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-05-06 21:39:14.749765 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ State Information ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-05-06 21:39:14.750086 | ~~~~~~~~~~~~~~~~~~ Number of nodes which did not deploy successfully: 1 ~~~~~~~~~~~~~~~~~
2021-05-06 21:39:14.750397 | The following node(s) had failures: undercloud
2021-05-06 21:39:14.750696 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Using a standalone-parameters.yaml that only consists of:

parameter_defaults:
  CloudName: standalone-0.localdomain
  Debug: True
  DeploymentUser: stack
  DnsServers: ['1.1.1.1', '8.8.8.8']
  NtpServer: ['1.pool.ntp.org', '2.pool.ntp.org']
  KernelIpNonLocalBind: 1
  NeutronPublicInterface: dummy0
  NeutronBridgeMappings: "datacentre:br-ctlplane"
  NeutronPhysicalBridge: br-ctlplane
  StandaloneEnableRoutedNetworks: false
  StandaloneHomeDir: /home/stack
  InterfaceLocalMtu: 1400
  NovaComputeLibvirtType: qemu
  LocalContainerRegistry: 192.168.24.2
  DockerInsecureRegistryAddress:
      - 192.168.24.2:8787
      - localhost:8787
      - standalone.ctlplane.localdomain:8787

deploy command:
sudo openstack tripleo deploy --output-only \
--templates /home/stack/templates \
--standalone \
--yes \
--output-dir /home/stack \
--stack standalone \
--standalone-role Standalone \
--timeout 90 -e /home/stack/templates/environments/standalone/standalone-tripleo.yaml -e /home/stack/templates/environments/docker-ha.yaml -e /home/stack/templates/environments/podman.yaml -e /home/stack/container-image-prepare.yaml -e /home/stack/parameters.yaml -r /home/stack/templates/roles/Standalone.yaml \
--deployment-user stack \
--local-ip 192.168.24.2/24 \
--control-virtual-ip 192.168.24.3

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-heat-templates (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/790166

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
assignee: nobody → Harald Jensås (harald-jensas)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/790204
Committed: https://opendev.org/openstack/tripleo-ansible/commit/2a7f74ac996317a1ed87923cac4561a8c2546f53
Submitter: "Zuul (22348)"
Branch: master

commit 2a7f74ac996317a1ed87923cac4561a8c2546f53
Author: Harald Jensås <email address hidden>
Date: Fri May 7 09:46:46 2021 +0200

    tripleo_ovn_mac_addresses - ignore no neutron

    If neutron service or auth options are not present,
    i.e standalone deployment without static_mappings.
    Then simply exit ok, and do nothing.

    Standalone never had an ovn bridge mac address
    interface prior to this anyway. So doing nothing
    should be ok.

    Closes-Bug: #1927556
    Change-Id: Ic323fccd4e30ee5a5b490a4a137735426f39ca66

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by "Alex Schultz <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/790166
Reason: https://review.opendev.org/c/openstack/tripleo-ansible/+/790204

Revision history for this message
Alex Schultz (alex-schultz) wrote :

Still a problem as once you install standalone, neutron becomes available.

2021-05-10 18:47:19.352812 | 525400aa-fcc8-9803-cdd0-0000000000fa | TASK | create ovn mac address for Standalone role nodes
2021-05-10 18:47:21.566555 | 525400aa-fcc8-9803-cdd0-0000000000fa | FATAL | create ovn mac address for Standalone role nodes | undercloud | error={"changed": false, "error": "Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://192.168.24.3:5000: HTTPConnectionPool(host='192.168.24.3', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7feb74f0a048>: Failed to establish a new connection: [Errno 111] Connection refused',))", "msg": "ERROR: Failed creating OVN MAC address resources! Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Unable to establish connection to http://192.168.24.3:5000: HTTPConnectionPool(host='192.168.24.3', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7feb74f0a048>: Failed to establish a new connection: [Errno 111] Connection refused',))", "success": false}

Changed in tripleo:
status: Fix Released → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/790932
Committed: https://opendev.org/openstack/python-tripleoclient/commit/2f5ad5947b1ad8691062f519ede49ed6748cac58
Submitter: "Zuul (22348)"
Branch: master

commit 2f5ad5947b1ad8691062f519ede49ed6748cac58
Author: Harald Jensås <email address hidden>
Date: Wed May 12 11:41:35 2021 +0200

    Auto OVN bridge mac mappings for standalone

    Set OVNStaticBridgeMacMappings for standalone deployments
    automatically unless the user provided an override.

    This replaces the implementation in quickstart-extras:
    https://review.opendev.org/783137

    Change-Id: I79d141358ead2a2c90fdb728e17926d96d498a28
    Closes-Bug: #1927556

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/python-tripleoclient/+/792524

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/792524
Committed: https://opendev.org/openstack/python-tripleoclient/commit/2006c0ff35c00753c8df14a25617f3ea0196e536
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 2006c0ff35c00753c8df14a25617f3ea0196e536
Author: Harald Jensås <email address hidden>
Date: Wed May 12 11:41:35 2021 +0200

    Auto OVN bridge mac mappings for standalone

    Set OVNStaticBridgeMacMappings for standalone deployments
    automatically unless the user provided an override.

    This replaces the implementation in quickstart-extras:
    https://review.opendev.org/783137

    Change-Id: I79d141358ead2a2c90fdb728e17926d96d498a28
    Closes-Bug: #1927556
    (cherry picked from commit 2f5ad5947b1ad8691062f519ede49ed6748cac58)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by "Alex Schultz <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/790166
Reason: solved elsewhere

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 16.2.1

This issue was fixed in the openstack/python-tripleoclient 16.2.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 17.0.0

This issue was fixed in the openstack/python-tripleoclient 17.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 4.0.0

This issue was fixed in the openstack/tripleo-ansible 4.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.