[Yahoo-eng-team] [Bug 1959028] [NEW] [OVN][Octavia] Fix the functional CI jobs

2022-01-25 Thread Rodolfo Alonso
Public bug reported:

Fix the functional tests in "ovn-octavia-provider". Since [1], the
variable to enable the OVS compilation is "Q_BUILD_OVS_FROM_GIT".

[1]https://review.opendev.org/c/openstack/devstack/+/799621

** Affects: neutron
 Importance: Undecided
 Status: In Progress

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

Title:
  [OVN][Octavia] Fix the functional CI jobs

Status in neutron:
  In Progress

Bug description:
  Fix the functional tests in "ovn-octavia-provider". Since [1], the
  variable to enable the OVS compilation is "Q_BUILD_OVS_FROM_GIT".

  [1]https://review.opendev.org/c/openstack/devstack/+/799621

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1959028/+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 1569937] Re: TypeError: Incorrect padding when setting metadata_encryption_key

2022-01-25 Thread Cyril Roelandt
This is an old bug that no longer seems relevant; please feel free to
reopen it if needed.

** Changed in: glance
   Status: In Progress => Won't Fix

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

Title:
  TypeError: Incorrect padding when setting metadata_encryption_key

Status in Glance:
  Won't Fix

Bug description:
  We are on liberty. We have show_multiple_locations set, to allow swift
  locations for images. But when setting metadata_encryption_key to a
  random 32 char string, glance throws an internal server error, e.g. on
  image-list:

  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi 
[req-fad0e0cb-1094-40ee-a314-ac189c660329 ed12c3c9e4144827bc2b041da22c94b8 
7f0b5f95e9f24cf3924e5aba39fddeca - - -] Caught error: Incorrect padding
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi Traceback (most recent 
call last):
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 879, in __call__
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi request, 
**action_args)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/common/wsgi.py", line 907, in dispatch
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi return 
method(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/api/v2/images.py", line 116, in index
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi 
member_status=member_status)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/api/authorization.py", line 113, in 
list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi images = 
self.image_repo.list(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi items = 
self.base.list(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/api/policy.py", line 123, in list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi return 
super(ImageRepoProxy, self).list(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi items = 
self.base.list(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi items = 
self.base.list(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/domain/proxy.py", line 89, in list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi items = 
self.base.list(*args, **kwargs)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/db/__init__.py", line 185, in list
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi image = 
self._format_image_from_db(db_image, db_image['tags'])
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/db/__init__.py", line 201, in 
_format_image_from_db
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi l['url'] = 
crypt.urlsafe_decrypt(key, l['url'])
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib/python2.7/site-packages/glance/common/crypt.py", line 74, in 
urlsafe_decrypt
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi ciphertext = 
base64.urlsafe_b64decode(six.binary_type(ciphertext))
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib64/python2.7/base64.py", line 112, in urlsafe_b64decode
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi return b64decode(s, 
'-_')
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi   File 
"/usr/lib64/python2.7/base64.py", line 76, in b64decode
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi raise TypeError(msg)
  2016-04-13 11:11:00.461 1592 ERROR glance.common.wsgi TypeError: Incorrect 
padding

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1569937/+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 1938151] Re: GLANCE_ENABLE_QUOTAS=true seems to cause 502 error when creating an image

2022-01-25 Thread Cyril Roelandt
Marking this bug as "Invalid" because it's not actually a Glance issue.

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

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

Title:
  GLANCE_ENABLE_QUOTAS=true seems to cause 502 error when creating an
  image

Status in devstack:
  Incomplete
Status in Glance:
  Invalid

Bug description:
  Since [1] merged on Devstack, Magnum CI [2] has been reporting 502
  errors when uploading images to Glance.

  ```
  ++ functions:_upload_image:121  :   openstack 
--os-cloud=devstack-admin --os-region-name=RegionOne image create 
Fedora-Cloud-Base-33-1.2.x86_64 --public --container-format bare --disk-format 
qcow2 --property hw_rng_model=virtio
  HttpException: 502: Server Error for url: 
https://10.210.32.131/image/v2/images/3dc75f76-cbb5-47a3-ab48-f81c127947e9/file,
 response from an upstream server.: The proxy server received an invalid: Bad 
Gateway: 502 Bad Gateway: Apache/2.4.41 (Ubuntu) Server at 10.210.32.131 Port 80
  + functions:_upload_image:1:   exit_trap
  ```

  [1] https://review.opendev.org/c/openstack/devstack/+/788056
  [2] 
https://zuul.opendev.org/t/openstack/build/b5e49d2229754bd99fc4ec21d6abd2b1

To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/1938151/+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 1957167] Re: glance constraint for sqlalchemy is too low for xena

2022-01-25 Thread OpenStack Infra
Reviewed:  https://review.opendev.org/c/openstack/glance/+/825783
Committed: 
https://opendev.org/openstack/glance/commit/71c1e4b18a47f94f3302f96c359a6d3e1453ff11
Submitter: "Zuul (22348)"
Branch:master

commit 71c1e4b18a47f94f3302f96c359a6d3e1453ff11
Author: Erno Kuvaja 
Date:   Fri Jan 21 12:59:01 2022 +

Bump SQLalchemy to version that supports PY3.9

Bumping SQLAlchemy to 1.3.14, which is first version supporting
Python 3.9 runtime, this hopefully addresses the issue reported.

Change-Id: I73f0c7c067fcab00a97cd925cad19edd64b6eb45
Closes-Bug: #1957167


** Changed in: glance
   Status: In Progress => Fix Released

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

Title:
  glance constraint for sqlalchemy is too low for xena

Status in Glance:
  Fix Released

Bug description:
  The glance requirement for sqlalchemy says >= 1.0.10 but using 1.3.2
  gives error when trying to db sync

  this is xena release versions

  openstack-glance-21.1.0-1.el8.noarch
  python3-glance-store-2.3.0-2.el8.noarch
  python3-glanceclient-3.5.0-1.el8.noarch
  python3-glance-21.1.0-1.el8.noarch

  upgrading sqlalchemy to 1.4.18 makes it working, which means the
  requirements is not properly set

  
  2022-01-11 17:38:48.627 196461 CRITICAL glance [-] Unhandled error: 
TypeError: 'int' object is not iterable
  2022-01-11 17:38:48.627 196461 ERROR glance Traceback (most recent call last):
  2022-01-11 17:38:48.627 196461 ERROR glance   File "/bin/glance-manage", line 
10, in 
  2022-01-11 17:38:48.627 196461 ERROR glance sys.exit(main())
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/glance/cmd/manage.py", line 557, in main
  2022-01-11 17:38:48.627 196461 ERROR glance return 
CONF.command.action_fn()
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/glance/cmd/manage.py", line 391, in sync
  2022-01-11 17:38:48.627 196461 ERROR glance 
self.command_object.sync(CONF.command.version)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/glance/cmd/manage.py", line 152, in sync
  2022-01-11 17:38:48.627 196461 ERROR glance curr_heads = 
alembic_migrations.get_current_alembic_heads()
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/glance/db/sqlalchemy/alembic_migrations/__init__.py",
 line 46, in get_current_alembic_heads
  2022-01-11 17:38:48.627 196461 ERROR glance engine = db_api.get_engine()
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/glance/db/sqlalchemy/api.py", line 98, in 
get_engine
  2022-01-11 17:38:48.627 196461 ERROR glance facade = 
_create_facade_lazily()
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/glance/db/sqlalchemy/api.py", line 88, in 
_create_facade_lazily
  2022-01-11 17:38:48.627 196461 ERROR glance _FACADE = 
session.EngineFacade.from_config(CONF)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
1370, in from_config
  2022-01-11 17:38:48.627 196461 ERROR glance 
expire_on_commit=expire_on_commit, _conf=conf)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
1291, in __init__
  2022-01-11 17:38:48.627 196461 ERROR glance 
slave_connection=slave_connection)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
506, in _start
  2022-01-11 17:38:48.627 196461 ERROR glance engine_args, maker_args)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
530, in _setup_for_connection
  2022-01-11 17:38:48.627 196461 ERROR glance 
sql_connection=sql_connection, **engine_kwargs)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/debtcollector/renames.py", line 43, in 
decorator
  2022-01-11 17:38:48.627 196461 ERROR glance return wrapped(*args, 
**kwargs)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/oslo_db/sqlalchemy/engines.py", line 211, in 
create_engine
  2022-01-11 17:38:48.627 196461 ERROR glance test_conn = 
_test_connection(engine, max_retries, retry_interval)
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib/python3.6/site-packages/oslo_db/sqlalchemy/engines.py", line 386, in 
_test_connection
  2022-01-11 17:38:48.627 196461 ERROR glance return engine.connect()
  2022-01-11 17:38:48.627 196461 ERROR glance   File 
"/usr/lib64/python3.6/site-packages/sqlalchemy/engine/base.py", line 2193, in 
connect
  2022-01-11 17:38:48.627 196461 ERROR glance return 

[Yahoo-eng-team] [Bug 1869222] Re: In Resize Instance interface Advanced Options -> Server Group option does not do anything

2022-01-25 Thread OpenStack Infra
Reviewed:  https://review.opendev.org/c/openstack/horizon/+/816303
Committed: 
https://opendev.org/openstack/horizon/commit/6ac31e0ba8df520133d20d21e35085d9b882c04e
Submitter: "Zuul (22348)"
Branch:master

commit 6ac31e0ba8df520133d20d21e35085d9b882c04e
Author: manchandavishal 
Date:   Tue Nov 2 12:10:22 2021 +0530

Drop Django based implementation of launch instance

horizon already deprecated launch instance Django based implementation
in the wallaby cycle [1]. This patch remove code for launch instance
Django based implementation as angular based implementation is the
default one from long and all features gaps between angular and Django
implementation is closed.

It also moves SetAdvanced step code to ``resize_instance.py`` as
``workflows/create_instance.py`` file is deleted and remove server_group
option from Advanced Options of resizing instance action because
"server_group" is not required while resizing an instance as per
nova-api reference [2].

Closes-Bug: #1869222

[1] https://review.opendev.org/c/openstack/horizon/+/779125
[2] 
https://docs.openstack.org/api-ref/compute/?expanded=resize-server-resize-action-detail#resize-server-resize-action

Change-Id: I5e01cd81f309491f1a58ea93911030366a86e3c7


** Changed in: horizon
   Status: In Progress => Fix Released

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

Title:
  In Resize Instance interface Advanced Options -> Server Group option
  does not do anything

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Choosing a server affinity group from the drop-down menu does not do
  anything.

  Checking resize_instance.py there is no mentioning of the form's
  server_group field: https://pastebin.ubuntu.com/p/Dp5jpBnxrk/

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1869222/+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 1958627] Re: Incomplete ARP entries on L3 gw namespace

2022-01-25 Thread Oleg Bondarev
Seems more related to neutron-dynamic-routing project

** Tags added: l3-bgp

** Changed in: neutron
   Importance: Undecided => Medium

** Changed in: neutron
   Status: New => Opinion

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

Title:
  Incomplete ARP entries on L3 gw namespace

Status in neutron:
  Opinion

Bug description:
  Setup information:

  Legacy l3 router + bgp + Public Address

  
  I see a lot unnecessary ARP request traffic to all instances in same network.

  
  Check bgp speaker advertised routes:(fake addresses)

  openstack bgp speaker list advertised routes 3e533042-729a-4782-8b8d-x
  +--+---+
  | Destination  | Nexthop   |
  +--+---+
  | 99.99.99.0/24   | 99.99.99.1|
  +--+---+

  Check L3 gw namespace arp table:(large count of incomplete ARP
  entries)

  ip netns exec qrouter-b524c5fc-dc91-41cb--ceded936xxx arp -ne
  Address  HWtype  HWaddress   Flags Mask
Iface
  99.99.99.92ether   (incomplete).   C 
qg-6a574a15-db
  99.99.99.96ether   fa:16:3e:c6:85:28   C 
qr-7a4cfad1-f7
  99.99.99.97ether   fa:16:3e:b4:3d:28   C 
qr-7a4cfad1-f7
  99.99.99.90ether   fa:16:3e:83:1f:4b   C 
qr-7a4cfad1-f7
  99.99.99.91(incomplete)  
qr-7a4cfad1-f7
  99.99.99.98ether   (incomplete)C 
qr-7a4cfad1-f7
  99.99.99.99ether   fa:16:3e:c6:e6:fd   C 
qr-7a4cfad1-f7
  99.99.99.94ether   fa:16:3e:dc:34:74   C 
qr-7a4cfad1-f7
  99.99.99.95(incomplete)  
qr-7a4cfad1-f7
  99.99.99.92ether   fa:16:3e:51:af:ef   C 
qr-7a4cfad1-f7
  99.99.99.93(incomplete)  
qr-7a4cfad1-f7
  99.99.99.98(incomplete)  
qr-7a4cfad1-f7
  99.99.99.96(incomplete)  
qr-7a4cfad1-f7
  .

  
  Neutron adds all subnet IPs and try arping all time.

  
  Wallaby release

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1958627/+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 1958964] [NEW] Fully Populated Load Balancer creation with OVN provider leaves pools as PENDING_CREATE

2022-01-25 Thread Luis Tomas Bolivar
Public bug reported:

Creating a Fully Populated Load Balancer with OVN as provider
successfully creates the LB but the pool stays in PENDING_CREATE state
forever.

How reproducible:
Send the fully populated request to the API in JSON format following 
https://docs.openstack.org/api-ref/load-balancer/v2/index.html?expanded=create-pool-detail,create-a-load-balancer-detail#creating-a-fully-populated-load-balancer


Steps to Reproduce:
1.
#!/bin/sh
 
set -e
 
subnet_id=$(openstack subnet show private-subnet -c id -f value)
 
TOKEN=$(openstack token issue -f value -c id)
OCTAVIA_BASE_URL=$(openstack endpoint list --service octavia --interface public 
-c URL -f value)
 
cat < tree.json
{
"loadbalancer": {
"name": "lb1",
"vip_subnet_id": "$subnet_id",
"provider": "ovn",
"listeners": [
{
"name": "listener1",
"protocol": "TCP",
"protocol_port": 80,
"default_pool": {
"name": "pool1",
"protocol": "TCP",
"lb_algorithm": "SOURCE_IP_PORT",
"members": [
{
"address": "192.168.122.18",
"protocol_port": 8080
}, {
"address": "192.168.122.19",
"protocol_port": 8080
}
]
}
}
]
}
}
EOF
 
curl -X POST \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $TOKEN" \
-d @tree.json \
${OCTAVIA_BASE_URL}/v2.0/lbaas/loadbalancers


2. openstack loadbalancer pool list


LB created but listeners, pool and members stays in PENDING_CREATE status

** Affects: neutron
 Importance: Undecided
 Status: In Progress

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

Title:
  Fully Populated Load Balancer creation with OVN provider leaves pools
  as PENDING_CREATE

Status in neutron:
  In Progress

Bug description:
  Creating a Fully Populated Load Balancer with OVN as provider
  successfully creates the LB but the pool stays in PENDING_CREATE state
  forever.

  How reproducible:
  Send the fully populated request to the API in JSON format following 
https://docs.openstack.org/api-ref/load-balancer/v2/index.html?expanded=create-pool-detail,create-a-load-balancer-detail#creating-a-fully-populated-load-balancer

  
  Steps to Reproduce:
  1.
  #!/bin/sh
   
  set -e
   
  subnet_id=$(openstack subnet show private-subnet -c id -f value)
   
  TOKEN=$(openstack token issue -f value -c id)
  OCTAVIA_BASE_URL=$(openstack endpoint list --service octavia --interface 
public -c URL -f value)
   
  cat < tree.json
  {
  "loadbalancer": {
  "name": "lb1",
  "vip_subnet_id": "$subnet_id",
  "provider": "ovn",
  "listeners": [
  {
  "name": "listener1",
  "protocol": "TCP",
  "protocol_port": 80,
  "default_pool": {
  "name": "pool1",
  "protocol": "TCP",
  "lb_algorithm": "SOURCE_IP_PORT",
  "members": [
  {
  "address": "192.168.122.18",
  "protocol_port": 8080
  }, {
  "address": "192.168.122.19",
  "protocol_port": 8080
  }
  ]
  }
  }
  ]
  }
  }
  EOF
   
  curl -X POST \
  -H "Content-Type: application/json" \
  -H "X-Auth-Token: $TOKEN" \
  -d @tree.json \
  ${OCTAVIA_BASE_URL}/v2.0/lbaas/loadbalancers

  
  2. openstack loadbalancer pool list

  
  LB created but listeners, pool and members stays in PENDING_CREATE status

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1958964/+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 1958961] [NEW] [ovn-octavia-provider] lb create failing with with ValueError: invalid literal for int() with base 10: '24 2001:db8::131/64'

2022-01-25 Thread yatin
Public bug reported:

When deployed with octavia-ovn-provider with below local.conf,
loadbalancer create(openstack loadbalancer create --vip-network-id
public --provider ovn) goes into ERROR state.

>From o-api logs:-
ERROR ovn_octavia_provider.helper Traceback (most recent call last):
ERROR ovn_octavia_provider.helper   File 
"/usr/local/lib/python3.8/dist-packages/netaddr/ip/__init__.py", line 811, in 
parse_ip_network
ERROR ovn_octavia_provider.helper prefixlen = int(val2)
ERROR ovn_octavia_provider.helper ValueError: invalid literal for int() with 
base 10: '24 2001:db8::131/64'

Seems regression caused after
https://review.opendev.org/c/openstack/ovn-octavia-provider/+/816868.

# Logical switch ports output
sudo ovn-nbctl find logical_switch_port  type=router 
_uuid   : 4865f50c-a2cd-4a5c-ae4a-bbc911985fb2
addresses   : [router]
dhcpv4_options  : []
dhcpv6_options  : []
dynamic_addresses   : []
enabled : true
external_ids: {"neutron:cidrs"="172.24.4.149/24 2001:db8::131/64", 
"neutron:device_id"="31a0e24f-6278-4714-b543-cba735a6c49d", 
"neutron:device_owner"="network:router_gateway", 
"neutron:network_name"=neutron-4708e992-cff8-4438-8142-1cc2ac7010db, 
"neutron:port_name"="", "neutron:project_id"="", "neutron:revision_number"="6", 
"neutron:security_group_ids"=""}
ha_chassis_group: []
name: "c18869b9--49a8-bc8a-5d2c51db5b6e"
options : {mcast_flood_reports="true", nat-addresses=router, 
requested-chassis=ykarel-devstack, 
router-port=lrp-c18869b9--49a8-bc8a-5d2c51db5b6e}
parent_name : []
port_security   : []
tag : []
tag_request : []
type: router
up  : true

_uuid   : f0ed6566-a942-4e2d-94f5-64ccd6bed568
addresses   : [router]
dhcpv4_options  : []
dhcpv6_options  : []
dynamic_addresses   : []
enabled : true
external_ids: {"neutron:cidrs"="fd25:38d5:1d9::1/64", 
"neutron:device_id"="31a0e24f-6278-4714-b543-cba735a6c49d", 
"neutron:device_owner"="network:router_interface", 
"neutron:network_name"=neutron-591d2b8c-3501-49b1-822c-731f2cc9b305, 
"neutron:port_name"="", "neutron:project_id"=f4c9948020024e13a1a091bd09d1fbba, 
"neutron:revision_number"="3", "neutron:security_group_ids"=""}
ha_chassis_group: []
name: "e778ac75-a15b-441b-b334-6a7579f851fa"
options : {router-port=lrp-e778ac75-a15b-441b-b334-6a7579f851fa}
parent_name : []
port_security   : []
tag : []
tag_request : []
type: router
up  : true

_uuid   : 9c2f3327-ac94-4881-a9c5-a6da87acf6a3
addresses   : [router]
dhcpv4_options  : []
dhcpv6_options  : []
dynamic_addresses   : []
enabled : true
external_ids: {"neutron:cidrs"="10.0.0.1/26", 
"neutron:device_id"="31a0e24f-6278-4714-b543-cba735a6c49d", 
"neutron:device_owner"="network:router_interface", 
"neutron:network_name"=neutron-591d2b8c-3501-49b1-822c-731f2cc9b305, 
"neutron:port_name"="", "neutron:project_id"=f4c9948020024e13a1a091bd09d1fbba, 
"neutron:revision_number"="3", "neutron:security_group_ids"=""}
ha_chassis_group: []
name: "d728e2a3-f9fd-4fff-8a6f-0c55a26bc55c"
options : {router-port=lrp-d728e2a3-f9fd-4fff-8a6f-0c55a26bc55c}
parent_name : []
port_security   : []
tag : []
tag_request : []
type: router
up  : true


local.conf
==

[[local|localrc]]
RECLONE=yes
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
Q_AGENT=ovn
Q_ML2_PLUGIN_MECHANISM_DRIVERS=ovn,logger
Q_ML2_PLUGIN_TYPE_DRIVERS=local,flat,vlan,geneve
Q_ML2_TENANT_NETWORK_TYPE="geneve"
OVN_BRANCH="v21.06.0"
OVN_BUILD_FROM_SOURCE="True"
OVS_BRANCH="branch-2.15"
OVS_SYSCONFDIR="/usr/local/etc/openvswitch"
OVN_L3_CREATE_PUBLIC_NETWORK=True
OCTAVIA_NODE="api"
DISABLE_AMP_IMAGE_BUILD=True
enable_plugin barbican https://opendev.org/openstack/barbican
enable_plugin octavia https://opendev.org/openstack/octavia
enable_plugin octavia-dashboard https://opendev.org/openstack/octavia-dashboard
LIBS_FROM_GIT+=python-octaviaclient
enable_service octavia
enable_service o-api
enable_service o-hk
enable_service o-da
disable_service o-cw
disable_service o-hm
enable_plugin ovn-octavia-provider 
https://opendev.org/openstack/ovn-octavia-provider
LOGFILE=$DEST/logs/stack.sh.log
enable_service ovn-northd
enable_service ovn-controller
enable_service q-ovn-metadata-agent
enable_service q-svc
disable_service q-agt
disable_service q-l3
disable_service q-dhcp
disable_service q-meta
enable_plugin neutron https://opendev.org/openstack/neutron
enable_service q-trunk
enable_service q-dns
enable_service q-port-forwarding
enable_service neutron-segments
enable_service q-log
enable_plugin neutron-tempest-plugin