Hi Rafael, Thanks for taking the time to prepare this patchset, I tested the PPA and it works fine. Without the ppa, the unit was reporting blocked state: glance-simplestreams-sync/1* blocked idle 11 10.5.0.55 Image sync failed, retrying soon. After the installation it could sync up properly: glance-simplestreams-sync/1* active idle 11 10.5.0.55 Sync completed at 09/25/19 21:47:25 Images available in glance after the sync: $ openstack image list +--------------------------------------+---------------------------------------------------------------+--------+ | ID | Name | Status | +--------------------------------------+---------------------------------------------------------------+--------+ | 205081a5-676d-4202-aa24-046b9a9038fc | auto-sync/ubuntu-bionic-18.04-amd64-server-20190918-disk1.img | active | | f159ec29-3528-444d-9584-0c24c9aebd72 | auto-sync/ubuntu-trusty-14.04-amd64-server-20190514-disk1.img | active | | 4a3b6833-7e27-4e88-8c3c-ede97d87f30b | auto-sync/ubuntu-xenial-16.04-amd64-server-20190918-disk1.img | active | +--------------------------------------+---------------------------------------------------------------+--------+ Terminal output and logs: glance-simplestreams-sync/1:/var/log/glance-simplestreams-sync.log INFO * 09-25 21:32:05 [PID:25708] * root * configuring sync for url {'url': 'http://cloud-images.ubuntu.com/releases/', 'path': 'streams/v1/index.sjson', 'name_prefix': 'ubuntu:released', 'item_filters': ['release~(trusty|xenial|bionic)', 'arch~(x86_64|amd64)', 'ftype~(disk1.img|disk.img)'], 'max': 1} ERROR * 09-25 21:32:05 [PID:25708] * root * Exception during syncing: Traceback (most recent call last): File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 479, in main do_sync(charm_conf, status_exchange) File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 255, in do_sync store = SwiftObjectStore(SWIFT_DATA_DIR) File "/usr/lib/python2.7/dist-packages/simplestreams/objectstores/swift.py", line 58, in __init__ self.keystone_creds = openstack.load_keystone_creds() File "/usr/lib/python2.7/dist-packages/simplestreams/openstack.py", line 61, in load_keystone_creds raise ValueError("(tenant_id or tenant_name)") ValueError: (tenant_id or tenant_name) WARNING * 09-25 21:32:05 [PID:25708] * root * no host info in configuration, can't set up rabbit. WARNING * 09-25 21:32:05 [PID:25708] * root * No rabbitmq connection available for msg{'status': 'Error', 'message': 'Traceback (most recent call last):\n File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 479, in main\n do_sync(charm_conf, status_exchange)\n File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 255, in do_sync\n store = SwiftObjectStore(SWIFT_DATA_DIR)\n File "/usr/lib/python2.7/dist-packages/simplestreams/objectstores/swift.py", line 58, in __init__\n self.keystone_creds = openstack.load_keystone_creds()\n File "/usr/lib/python2.7/dist-packages/simplestreams/openstack.py", line 61, in load_keystone_creds\n raise ValueError("(tenant_id or tenant_name)")\nValueError: (tenant_id or tenant_name)\n'}. Message will be lost. INFO * 09-25 21:32:05 [PID:25708] * root * Executing command: ['juju-run', 'glance-simplestreams-sync/1', 'status-set blocked "Image sync failed, retrying soon."'] INFO * 09-25 21:32:07 [PID:25708] * root * sync done. # apt policy python-simplestreams python-simplestreams: Installed: 0.1.0~bzr426-0ubuntu1.2 Candidate: 0.1.0~bzr426-0ubuntu1.2 Version table: *** 0.1.0~bzr426-0ubuntu1.2 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages 100 /var/lib/dpkg/status 0.1.0~bzr426-0ubuntu1 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages # apt policy python-simplestreams python-simplestreams: Installed: 0.1.0~bzr426-0ubuntu1.2 Candidate: 0.1.0~bzr426-0ubuntu1.4 Version table: 0.1.0~bzr426-0ubuntu1.4 500 500 http://ppa.launchpad.net/rafaeldtinoco/simplestreams-xenial-sru/ubuntu xenial/main amd64 Packages *** 0.1.0~bzr426-0ubuntu1.2 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages 100 /var/lib/dpkg/status 0.1.0~bzr426-0ubuntu1 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages # apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: libboost-iostreams1.58.0 libboost-random1.58.0 libboost-system1.58.0 libboost-thread1.58.0 Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: ibverbs-providers libibverbs1 libnl-3-200 libnl-route-3-200 python3-asn1crypto python3-certifi The following packages will be upgraded: dh-python dnsmasq-base libhogweed4 libnettle6 libnuma1 librados2 librbd1 python-simplestreams python3-cffi-backend python3-chardet python3-cryptography python3-idna python3-pkg-resources python3-requests python3-setuptools python3-six python3-urllib3 python3-yaml qemu-block-extra qemu-utils 20 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 6956 kB of archives. After this operation, 8903 kB of additional disk space will be used. Do you want to continue? [Y/n] [...] # apt policy python-simplestreams python-simplestreams: Installed: 0.1.0~bzr426-0ubuntu1.4 Candidate: 0.1.0~bzr426-0ubuntu1.4 Version table: *** 0.1.0~bzr426-0ubuntu1.4 500 500 http://ppa.launchpad.net/rafaeldtinoco/simplestreams-xenial-sru/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status 0.1.0~bzr426-0ubuntu1.2 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages 0.1.0~bzr426-0ubuntu1 500 500 http://nova.clouds.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages DEBUG * 09-25 21:47:10 [PID:28113] * keystoneauth.session * REQ: curl -g -i -X POST http://10.5.0.33:9292/v1/images -H "x-image-meta-property-source_content_id: com.ubuntu.cloud:released:download" -H "x-image -meta-property-product_name: com.ubuntu.cloud:server:16.04:amd64" -H "x-image-meta-property-os_version: 16.04" -H "x-image-meta-container_format: bare" -H "x-image-meta-checksum: 876b3ba41a84033fddf2743dcb025c00" -H "x-image-meta-property-content_id: auto.sync" -H "x-image-meta-property-simplestreams_metadata: {"aliases": "16.04,x,xenial", "arch": "amd64", "ftype": "disk1.img", "label": "release", "md5": "876b3ba41a84033 fddf2743dcb025c00", "os": "ubuntu", "pubname": "ubuntu-xenial-16.04-amd64-server-20190918", "release": "xenial", "release_codename": "Xenial Xerus", "release_title": "16.04 LTS", "sha256": "c7b9e8d5c8e5a29024a31a e3e6cf3dd62c08ac50194ffcfcfebb011889ee0dba", "size": "296812544", "support_eol": "2021-04-21", "supported": "True", "version": "16.04"}" -H "X-Auth-Token: {SHA1}75b7536b69d5d00756c57d803f556c34cbcae4af" -H "x-ima ge-meta-property-os_distro: ubuntu" -H "x-image-meta-property-item_name: disk1.img" -H "x-image-meta-property-architecture: x86_64" -H "x-image-meta-property-version_name: 20190918" -H "x-image-meta-is_public: Tr ue" -H "User-Agent: python-glanceclient" -H "x-image-meta-size: 296812544" -H "Content-Type: application/octet-stream" -H "x-image-meta-disk_format: qcow2" -H "x-image-meta-name: auto-sync/ubuntu-xenial-16.04-amd 64-server-20190918-disk1.img" -d '' DEBUG * 09-25 21:47:17 [PID:28113] * keystoneauth.session * RESP: [201] Content-Type: application/json Content-Length: 1362 Location: http://10.5.0.33:9292/v1/images/4a3b6833-7e27-4e88-8c3c-ede97d87f30b Etag: 876b3ba41a84033fddf2743dcb025c00 X-Openstack-Request-Id: req-a523eea0-ddbc-4eff-84b5-209de7933d7e Date: Wed, 25 Sep 2019 21:47:17 GMT Connection: keep-alive RESP BODY: {"image": {"status": "active", "deleted": false, "container_format": "bare", "min_ram": 0, "updated_at": "2019-09-25T21:47:17.000000", "owner": "9cbff82bd5694f3f82f6296a2d02b5f5", "min_disk": 0, "is_pu blic": true, "deleted_at": null, "id": "4a3b6833-7e27-4e88-8c3c-ede97d87f30b", "size": 296812544, "virtual_size": null, "name": "auto-sync/ubuntu-xenial-16.04-amd64-server-20190918-disk1.img", "checksum": "876b3b a41a84033fddf2743dcb025c00", "created_at": "2019-09-25T21:47:11.000000", "disk_format": "qcow2", "properties": {"os_distro": "ubuntu", "item_name": "disk1.img", "product_name": "com.ubuntu.cloud:server:16.04:amd6 4", "os_version": "16.04", "architecture": "x86_64", "version_name": "20190918", "content_id": "auto.sync", "simplestreams_metadata": "{\"aliases\": \"16.04,x,xenial\", \"arch\": \"amd64\", \"ftype\": \"disk1.img \", \"label\": \"release\", \"md5\": \"876b3ba41a84033fddf2743dcb025c00\", \"os\": \"ubuntu\", \"pubname\": \"ubuntu-xenial-16.04-amd64-server-20190918\", \"release\": \"xenial\", \"release_codename\": \"Xenial X erus\", \"release_title\": \"16.04 LTS\", \"sha256\": \"c7b9e8d5c8e5a29024a31ae3e6cf3dd62c08ac50194ffcfcfebb011889ee0dba\", \"size\": \"296812544\", \"support_eol\": \"2021-04-21\", \"supported\": \"True\", \"ver sion\": \"16.04\"}", "source_content_id": "com.ubuntu.cloud:released:download"}, "protected": false}} DEBUG * 09-25 21:47:17 [PID:28113] * keystoneauth.session * POST call to image for http://10.5.0.33:9292/v1/images used request id req-a523eea0-ddbc-4eff-84b5-209de7933d7e INFO * 09-25 21:47:17 [PID:28113] * sstreams * writing data: streams/v1/auto.sync.json DEBUG * 09-25 21:47:17 [PID:28113] * urllib3.connectionpool * http://10.5.0.13:80 "HEAD /swift/v1/simplestreams/data/streams/v1/auto.sync.json HTTP/1.1" 200 0 DEBUG * 09-25 21:47:17 [PID:28113] * swiftclient * REQ: curl -i http://10.5.0.13:80/swift/v1/simplestreams/data/streams/v1/auto.sync.json -I -H "X-Auth-Token: ecef5df1355a4694..." DEBUG * 09-25 21:47:17 [PID:28113] * swiftclient * RESP STATUS: 200 OK DEBUG * 09-25 21:47:17 [PID:28113] * swiftclient * RESP HEADERS: {u'Content-Length': u'2014', u'Accept-Ranges': u'bytes', u'Last-Modified': u'Wed, 25 Sep 2019 21:46:59 GMT', u'etag': u'15ef217f34b87daaed6e4469b7c07c7c', u'X-Timestamp': u'1569448019.05408', u'X-Trans-Id': u'tx00000000000000000000e-005d8be065-10cd-default', u'Date': u'Wed, 25 Sep 2019 21:47:17 GMT', u'Content-Type': u'application/json', u'X-Openstack-Request-Id': u'tx00000000000000000000e-005d8be065-10cd-default'} DEBUG * 09-25 21:47:18 [PID:28113] * urllib3.connectionpool * http://10.5.0.13:80 "PUT /swift/v1/simplestreams/data/streams/v1/auto.sync.json HTTP/1.1" 201 0 DEBUG * 09-25 21:47:18 [PID:28113] * swiftclient * REQ: curl -i http://10.5.0.13:80/swift/v1/simplestreams/data/streams/v1/auto.sync.json -X PUT -H "ETag: 32f5c8c300653970f22ba06d8567fb29" -H "X-Auth-Token: ecef5df1355a4694..." DEBUG * 09-25 21:47:18 [PID:28113] * swiftclient * RESP STATUS: 201 Created DEBUG * 09-25 21:47:18 [PID:28113] * swiftclient * RESP HEADERS: {u'Content-Length': u'0', u'Last-Modified': u'Wed, 25 Sep 2019 21:47:17 GMT', u'etag': u'32f5c8c300653970f22ba06d8567fb29', u'X-Trans-Id': u'tx00000000000000000000f-005d8be065-10cd-default', u'Date': u'Wed, 25 Sep 2019 21:47:18 GMT', u'Content-Type': u'text/plain; charset=utf-8', u'X-Openstack-Request-Id': u'tx00000000000000000000f-005d8be065-10cd-default'} full log for inspection if needed: http://paste.ubuntu.com/p/XP529s84g2/ On Mon, 2019-09-23 at 18:33 +0000, Rafael David Tinoco wrote: > On 20/09/2019 07:20, Rafael David Tinoco wrote: > > Ed, Felipe, > > > > Could you please review this merge request ? I'm uploading source > > package at the following PPA: > > > > https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/simplestreams-xenial-sru > > > > So you can grab simplestreams package from there. > > > > Thanks a lot! > > > Spoke to Felipe today and he added this in his TODO list (to be done > likely tomorrow. I also asked him to do the SRU verification in the > public bug once package is uploaded to -proposed, as this bug is very > cloudy and he is able to do review/verification quicker). > -- Felipe Reyes Software Sustaining Engineer @ Canonical # Email: