Comment 4 for bug 1949360

Revision history for this message
YU CHENGDE (chant) wrote :

hello

1.
stx-openstack apply was stuck because armada applied opendstack-glance failed

I surf the logs and found the issue in

====
ALL_NODES_20211101.125218/controller-0_20211101.125218/var/log/pods/openstack_glance-metadefs-load-jnkjv_542da925-6a87-4d52-88a8-5fa7ce16689c/glance-metadefs-load/0.log
====

2021-11-01T12:33:16.256289485Z stdout F 2021-11-01 12:33:16.255 6 ERROR glance.db.sqlalchemy.metadata [-] Failed to parse json file /var/lib/openstack/etc/glance/metadefs/compute-hypervisor.json while populating metadata due to: 'ascii' codec can't decode byte 0xc2 in position 898: ordinal not in range(128): UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 898: ordinal not in range(128)

2021-11-01T12:33:16.328460709Z stdout F 2021-11-01 12:33:16.328 6 ERROR glance.db.sqlalchemy.metadata [-] Failed to parse json file /var/lib/openstack/etc/glance/metadefs/software-runtimes.json while populating metadata due to: 'ascii' codec can't decode byte 0xe2 in position 1367: ordinal not in range(128): UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1367: ordinal not in range(128)

====
ALL_NODES_20211101.125218/controller-0_20211101.125218/var/log/pods/openstack_glance-ks-service-lhgkn_5de50a62-c1a6-4f9a-8895-de8a62581c17/image-ks-service-registration/0.log
====

2021-11-01T12:32:54.675000242Z stderr F + OS_SERVICE_DESC='RegionOne: glance (image) service'
2021-11-01T12:32:54.675043656Z stderr F + unset OS_SERVICE_ID
2021-11-01T12:32:54.675545656Z stderr F ++ seq 3
2021-11-01T12:32:54.678134714Z stderr F + for i in '$(seq 3)'
2021-11-01T12:32:54.679088664Z stderr F ++ grep ',glance,image$'
2021-11-01T12:32:54.67932324Z stderr F ++ openstack service list -f csv --quote none
2021-11-01T12:32:54.679546801Z stderr F ++ sed -e s/,glance,image//g
2021-11-01T12:32:59.228688184Z stderr F + OS_SERVICE_ID=1b912ffbbf2d4c89b4318e58bd5456b3
2021-11-01T12:32:59.228720252Z stderr F + [[ -n 1b912ffbbf2d4c89b4318e58bd5456b3 ]]
2021-11-01T12:32:59.228723849Z stderr F + exit 0

++++
next step
++++
I will trace the process for armada applying openstack-glance and find out the root cause