Uploaded image for project: 'IT: Release Engineering'
  1. IT: Release Engineering
  2. RELENG-4644

Migrate away from depreciated shade library

Issue XMLXMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • Q1 2023 RE Operations
    • None
    • None
    • None

      The shade library has been officially depreciated and is no longer supported.

      After Python3.9 it will no longer be usable.

      root@2916d0feed28:/# python3.8
      Python 3.8.0 (default, Dec  9 2021, 17:53:27)
      
      >>> from collections import Mapping
      <stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working

      Current issue

      https://jenkins.opendaylight.org/releng/job/bgpcep-csit-1node-bgp-ingest-mixed-all-argon/172/consoleFull 

      17:37:25 + lftools openstack --os-cloud vex stack create releng-bgpcep-csit-1node-bgp-ingest-mixed-all-argon-172 csit-2-instance-type.yaml /w/workspace/bgpcep-csit-1node-bgp-ingest-mixed-all-argon/stack-parameters.yaml
      17:37:26 Creating stack releng-bgpcep-csit-1node-bgp-ingest-mixed-all-argon-172
      17:37:26 AttributeError: module 'collections' has no attribute 'Mapping'
      17:37:26 
      Build step 'Execute shell' marked build as failure
      17:37:26 $ ssh-agent -k

       

      https://docs.openstack.org/releasenotes/shade/stein.html 

      The relationship between shade and openstacksdk has been decoupled and the shade library is now officially in maintenance mode.

      Shade is used in lftools/openstack/(object, server, stack and volume).py

       

       

              bthuree Bengt Thuree
              bthuree Bengt Thuree
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: