Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Da

...

Caracal a Epoxy

Procedura indicativa

  • A grandi linee la procedura sara':

      
        - Sul secondo controller i servizi sono attivi con versione C

        - Si spengono tutti i servizi sul primo controller
          Si aggiornano i pacchetti a E e si aggiiornano i file di configurazione sul primo controller (senza fare partire i servizi)
          Sul primo controller: keystone-manage db_sync --expand (il --expand di fatto fa in modo che il Db sia usabile sia per la versione C che per la versione E)
          Sul primo controller si avvia keystone
          si spegne keystone sul secondo controller
          Sul primo controller: keystone-manage db_sync --contract
        lo stesso per tutti gli altri servizi
        Alla fine si aggiorna il secondo controller e si fanno partire anche li' i servizi
        Si aggiornano i compute node uno alla volta

Check preliminari ed installazione release

  • Controllare che tutti i servizi Openstack siano spenti
  • Controllare se sono installati openstack-client e selinux

    Code Block
    languagebash
    [root@controller-01 ~]#  yum list installed | grep openstackclient
    python-openstackclient-lang.noarch                                56.86.1-1.el9s                     @centos-openstack-yogacaracal       
    python3-openstackclient.noarch                                    56.86.1-1.el9s                     @centos-openstack-yogacaracal       
    
    [root@controller-01 yum.repos.d~]#  yum list installed | grep openstack-selinux
    openstack-selinux.noarch                                          0.8.3740-1.el9s                    @centos-openstack-yogazed           


  • Controllare versione kernel e ceph

    Code Block
    languagebash
    [root@controller-01 yum.repos.d~]#  yum list installed | grep kernel
    kernel.x86_64                                                     5.14.0-427.24.1.el9_4            @anaconda                       
    kernel-core.x86_64                                                     5.14.0-427503.2433.1.el9_45            @baseos  @anaconda                       
    kernel-headerscore.x86_64                                                5.14.0-427.24.1.el9_4            @anaconda @appstream                      
    kernel-modulescore.x86_64                                                5.14.0-427503.2433.1.el9_45            @baseos  @anaconda                       
    kernel-modules-coreheaders.x86_64                                             5.14.0-427503.2433.1.el9_45            @anaconda @appstream                      
    kernel-srpm-macros.noarchmodules.x86_64                                             15.14.0-13427.24.1.el9_4                 @anaconda      @appstream                      
    kernel-toolsmodules.x86_64                                               5.14.0-427503.2433.1.el9_45            @baseos @anaconda                        
    kernel-toolsmodules-libscore.x86_64                                          5.14.0-427.24.1.el9_4            @anaconda                    
    
    [root@controller-01 ~]# yum list installed | grep ceph
    abseilkernel-modules-cppcore.x86_64                                        5.14.0-503.33.1.el9_5         20210324.2-2.el9s   @baseos             @centos-ceph-pacific
    blosc.x86_64            
    kernel-srpm-macros.noarch                                          1.21.0-313.el9sel9                    @centos-ceph-pacific
    centos-release-ceph-pacific.noarch   @appstream                      
    kernel-tools.x86_64       1                                        5.14.0-2503.33.1.el9_5            @baseos                 @extras
    ceph-common        
    kernel-tools-libs.x86_64                                          5.14.0-503.33.1.el9_5      2:16.2.15-1.el9s      @baseos                        @centos-ceph-pacific
    ...                
    
    [root@controller-01 yum.repos.d~]# uname -a
    Linux controller-01.cloud.pd.infn.it 5.14.0-427.24.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 9 15:32:20 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

    Rimuovere release Yoga

    Code Block
    languagebash
    yum remove centos-release-openstack-yoga
    Code Block
    languagebash
    titlerisultato
    collapsetrue
    [root@controller-01 ~]# yum remove centos-release-openstack-yoga
    Dependencies resolved.
    ===================================================================================================================================================================================================================
     Package                                                             Architecture                                Version                                        Repository                                    Size
    ===================================================================================================================================================================================================================
    Removing:
     centos-release-openstack-yoga                                       noarch                                      1-4.el9                                        @extras                                      4.0 k
    Removing unused dependencies:
     centos-release-ceph-pacific                                         noarch                                      1.0-2.el9                                      @extras                                      926
     centos-release-cloud                                                noarch                                      1-1.el9                                        @extras                                      1.0 k
     centos-release-messaging                                            noarch                                      1-4.el9                                        @extras                                      1.8 k
     centos-release-nfv-common                                           noarch                                      1-5.el9                                        @extras                                      1.0 k
     centos-release-nfv-openvswitch                                      noarch                                      1-5.el9                                        @extras                                      1.2 k
     centos-release-rabbitmq-38                                          noarch                                      1-4.el9                                        @extras                                      795
     centos-release-storage-common                                       noarch                                      2-4.el9                                        @extras                                      1.4 k
    
    Transaction Summary
    ===================================================================================================================================================================================================================
    Remove  8
    Packages

    Installare Zed

    Code Block
    languagebash
    yum install centos-release-openstack-zed
    Code Block
    languagebash
    titlerisultato
    collapsetrue
    [root@controller-01 ~]# yum install centos-release-openstack-zed
    Last metadata expiration check: 0:52:03 ago on Fri 17 Jan 2025 11:39:45 AM CET.
    Dependencies resolved.
    ===================================================================================================================================================================================================================
     Package                                                             Architecture                                Version                                         Repository                                   Size
    ===================================================================================================================================================================================================================
    Installing:
     centos-release-openstack-zed                                        noarch                                      1-4.el9                                         extras                                      7.9 k
    Installing dependencies:
     centos-release-ceph-quincy                                          noarch                                      1.0-2.el9                                       extras                                      7.4 k
     centos-release-cloud                                                noarch                                      1-1.el9                                         extras                                      7.9 k
     centos-release-messaging                                            noarch                                      1-4.el9                                         extras                                      8.3 k
     centos-release-nfv-common                                           noarch                                      1-5.el9                                         extras                                      7.8 k
     centos-release-nfv-openvswitch                                      noarch                                      1-5.el9                                         extras                                      7.5 k
     centos-release-rabbitmq-38                                          noarch                                      1-4.el9                                         extras                                      7.4 k
     centos-release-storage-common                                       noarch                                      2-4.el9                                         extras                                      8.2 k
    
    Transaction Summary
    ===================================================================================================================================================================================================================
    Install  8 Packages
    
    
  • Salvare configurazioni che di solito vengono sovrascritte

    Code Block
    languagebash
    export REL=yoga
    cp /etc/ec2api/ec2api.conf /etc/ec2api/ec2api.conf.$REL
    cp /etc/ec2api/api-paste.ini /etc/ec2api/api-paste.ini.$REL
    cp /etc/httpd/conf.d/openstack-dashboard.conf /etc/httpd/conf.d/openstack-dashboard.conf.$REL
  • Update pacchetti

    Code Block
    languagebash
    [root@controller-01 ~]# yum update
    Last metadata expiration check: 0:58:43 ago on Fri 17 Jan 2025 11:39:45 AM CET.
    Error:
     Problem: cannot install both srvadmin-hapi-11.1.0.0-5747.el9.x86_64 from dell-system-update_dependent and srvadmin-hapi-11.0.0.0-5268.el9.x86_64 from @System
      - package srvadmin-idracadm7-11.0.0.0-5268.el9.x86_64 from @System requires srvadmin-hapi = 11.0.0.0, but none of the providers can be installed
      - cannot install the best update candidate for package srvadmin-hapi-11.0.0.0-5268.el9.x86_64
      - problem with installed package srvadmin-idracadm7-11.0.0.0-5268.el9.x86_64
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
    [root@controller-01 ~]# yum list installed | grep idrac
    srvadmin-idrac.x86_64 yum list installed | grep ceph 
    blosc.x86_64                                                      1.21.0-3.el9s                    @centos-ceph-pacific            
    centos-release-ceph-reef.noarch                                   1.0-1.el9              11.0.0.0-5268.el9          @extras      @dell-system-update_dependent
    srvadmin-idracadm7.x86_64                   
    ceph-common.x86_64    
                      11.0.0.0-5268.el9                @dell-system-update_dependent
    
    #### per risolvere il conflitto, invece di rimuovere il pacchetto
    #[root@controller-01 ~]# yum remove srvadmin-idracadm7.x86_64
    #Dependencies resolved.
     
    
    ### fare l'update con
    [root@controller-01 StartServices]# yum update --disablerepo=dell-system-update_independent --disablerepo=dell-system-update_dependent
    
    Dependencies resolved. 2:18.2.4-2.el9s                  @centos-ceph-reef             
    
    [root@controller-01 ~]# uname -a
    Linux controller-01.cloud.pd.infn.it 5.14.0-503.33.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 20 03:39:23 EDT 2025 x86_64 x86_64 x86_64 GNU/Linux
  • Rimuovere release Caracal

    Code Block
    languagebash
    yum remove centos-release-openstack-caracal.noarch


  • Installare Epoxy

    Code Block
    languagebash
    dnf install -y https://trunk.rdoproject.org/rdo_release/rdo-release.el9s.rpm  (potrebbe servire)
    dnf install centos-release-openstack-epoxy


  • Salvare configurazioni che di solito vengono sovrascritte

    Code Block
    languagebash
    export REL=caracal
    Code Block
    languagebash
    titlerisultato
    collapsetrue
    # Nell’update vengono scaricati i nuovi rpm: attenzione a questi file di configurazione
    
    cp /etc/openstack-dashboard/local_settings /etc/openstack-dashboard/local_settings.$REL
    cp /etc/neutron/neutron.conf /etc/neutron/neutron.conf.$REL
    cp /etc/nova/nova.conf /etc/nova/nova.conf.$REL
    cp /etc/placement/placement.conf /etc/placement/placement.conf.$REL
    cp /etc/heat/heat.conf /etc/heat/heat.conf.$REL
    cp /etc/neutron/dhcp_agent.ini /etc/neutron/dhcp_agent.ini.$REL
    cp /etc/neutron/l3_agent.ini /etc/neutron/l3_agent.ini.$REL
    cp /etc/neutron/metadata_agent.ini /etc/neutron/metadata_agent.ini.$REL
    cp /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini.$REL
    cp /etc/neutron/plugins/ml2/openvswitch_agent.ini /etc/neutron/plugins/ml2/openvswitch_agent.ini.$REL
    cp /etc/keystone/keystone.conf /etc/keystone/keystone.conf.$REL
    cp /etc/glance/glance-api.conf /etc/glance/glance-api.conf.$REL
    cp /etc/cinder/cinder.conf /etc/cinder/cinder.conf.$REL
    cp /etc/httpd/conf.d/auth_openidcopenstack-dashboard.conf /etc/httpd/conf.d/openstack-dashboard.conf.$REL
  • Update pacchetti

    Code Block
    languagebash
    dnf update -y
    dnf upgrade -y
    
    da verificare e scrivere output
    
    
    
    Code Block
    languagebash
    titlerisultato
    collapsetrue
    # DA VERIFICARE PER EPOXY 
    # Nell’update vengono scaricati i nuovi rpm: attenzione a questi file di configurazione
    
    cp auth_openidc.conf.$REL
    
    mv -f /etc/openstack-dashboard/local_settings.rpmnew /etc/openstack-dashboard/local_settings
    mv -f.$REL
    cp /etc/neutron/neutron.conf.rpmnew /etc/neutron/neutron.conf.$REL
    mvcp -f /etc/nova/nova.conf.rpmnew /etc/nova/nova.conf
    mv -f.$REL
    cp /etc/placement/placement.conf.rpmnew /etc/placement/placement.conf.$REL
    mvcp -f /etc/heat/heat.conf.rpmnew /etc/heat/heat.conf
    mv -f /etc/neutron/dhcp_agent.ini.rpmnew /etc/neutron/dhcp_agent.ini
    mv -f /etc/neutron/l3_agent.ini.rpmnew /etc/neutron/l3_agent.ini
    mv -f /etc/neutron/metadata_agent.ini.rpmnew /etc/neutron/metadata_agent.ini
    mv -f /etc/neutron/plugins/ml2/ml2_conf.ini.rpmnew /etc/neutron/plugins/ml2/ml2_conf.ini
    mv -f /etc/neutron/plugins/ml2/openvswitch_agent.ini.rpmnew /etc/neutron/plugins/ml2/openvswitch_agent.ini
    mv -f /etc/keystone/keystone.conf.rpmnew.$REL
    cp /etc/keystoneneutron/keystone.conf
    mv -f dhcp_agent.ini /etc/glance/glance-api.conf.rpmnewneutron/dhcp_agent.ini.$REL
    cp /etc/glance/glance-api.conf
    mv -fneutron/l3_agent.ini /etc/cinderneutron/cinderl3_agent.confini.rpmnew$REL
    cp /etc/cinderneutron/cinder.conf
    mv -f metadata_agent.ini /etc/httpd/conf.d/auth_openidc.conf.rpmnewneutron/metadata_agent.ini.$REL
    cp /etc/httpd/conf.d/auth_openidc.conf

dbsync ad Zed

  • neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini.$REL
    cp /etc/neutron/plugins/ml2/openvswitch_agent.ini /etc/neutron/plugins/ml2/openvswitch_agent.ini.$REL
    cp /etc/keystone/keystone.conf /etc/keystone/keystone.conf.$REL
    cp /etc/glance/glance-api.conf /etc/glance/glance-api.conf.$REL
    cp /etc/cinder/cinder.conf /etc/cinder/cinder.conf.$REL
    cp /etc/httpd/conf.d/auth_openidc.conf /etc/httpd/conf.d/auth_openidc.conf.$REL
    
    mv -f /etc/openstack-dashboard/local_settings.rpmnew /etc/openstack-dashboard/local_settings
    mv -f /etc/neutron/neutron.conf.rpmnew /etc/neutron/neutron.conf
    mv -f /etc/nova/nova.conf.rpmnew /etc/nova/nova.conf
    mv -f /etc/placement/placement.conf.rpmnew /etc/placement/placement.conf
    mv -f /etc/heat/heat.conf.rpmnew /etc/heat/heat.conf
    mv -f /etc/neutron/dhcp_agent.ini.rpmnew /etc/neutron/dhcp_agent.ini
    mv -f /etc/neutron/l3_agent.ini.rpmnew /etc/neutron/l3_agent.ini
    mv -f /etc/neutron/metadata_agent.ini.rpmnew /etc/neutron/metadata_agent.ini
    mv -f /etc/neutron/plugins/ml2/ml2_conf.ini.rpmnew /etc/neutron/plugins/ml2/ml2_conf.ini
    mv -f /etc/neutron/plugins/ml2/openvswitch_agent.ini.rpmnew /etc/neutron/plugins/ml2/openvswitch_agent.ini
    mv -f /etc/keystone/keystone.conf.rpmnew /etc/keystone/keystone.conf
    mv -f /etc/glance/glance-api.conf.rpmnew /etc/glance/glance-api.conf
    mv -f /etc/cinder/cinder.conf.rpmnew /etc/cinder/cinder.conf
    mv -f /etc/httpd/conf.d/auth_openidc.conf.rpmnew /etc/httpd/conf.d/auth_openidc.conf

dbsync a Epoxy


  • KEYSTONE

    Code Block
    languagebash
    crudini --set /etc/keystone/keystone.conf database connection mysql+pymysql://keystone:KEYSTONE_xx_yyy@192.168.60.88:4306/keystone
    crudini --set /etc/keystone/keystone.conf token provider fernet
    
    su -s /bin/sh -c "keystone-manage db_sync --expand" keystone
    
    

    KEYSTONE

    Code Block
    languagebash
    crudini --set /etc/keystone/keystone.conf database connection mysql+pymysql://keystone:KEYSTONE_xx_yyy@192.168.60.88:4306/keystone
    crudini --set /etc/keystone/keystone.conf token provider fernet
    
    su -s /bin/sh -c "keystone-manage db_sync" keystone
    
    #2025-01-17 14:42:57.713 1229130 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 14:42:57.714 1229130 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    #2025-01-17 14:42:57.749 1229130 INFO keystone.common.sql.upgrades [-] The database is still under sqlalchemy-migrate control; applying any remaining sqlalchemy-migrate-based migrations and #fake applying the initial alembic migration
    #2025-01-17 14:42:57.792 1229130 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 14:42:57.794 1229130 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    #2025-01-17 14:42:58.524 1229130 INFO alembic.runtime.migration [-] Running stamp_revision  -> 27e647c0fad4
    #2025-01-17 14:42:58.546 1229130 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 14:42:58.546 1229130 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    #2025-01-17 14:42:58.554 1229130 INFO alembic.runtime.migration [-] Running upgrade 27e647c0fad4 -> e25ffa003242, Initial no-op Yoga contract migration.
    #2025-01-17 14:42:58.557 1229130 INFO alembic.runtime.migration [-] Running upgrade 27e647c0fad4 -> 29e87d24a316, Initial no-op Yoga expand migration.
  • GLANCE

    Code Block
    languagebash
    crudini --set /etc/glance/glance-api.conf database connection mysql+pymysql://glance:GLANCE_xx_yyy@192.168.60.88:5306/glance     
    
    su -s /bin/sh -c "glance-manage db_sync expand" glance
    
    #su A monitor
    2025-01-17 14:44:24.750 1229157 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    2025-01-17 14:44:24.750 1229157 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    Database is up to date. No migrations needed.-s /bin/sh -c "glance-manage db migrate" glance
    
    
  • PLACEMENT

    Code Block
    languagebash
    crudini --set /etc/placement/placement.conf placement_database connection \ mysql+pymysql://placement:PLACEMENT_xx_yyy@192.168.60.88:6306/placement
    
    su -s /bin/sh -c "placement-manage db sync" placement
    
    #non scrive nulla a monitor
  • NOVA

    Code Block
    languagebash
    crudini --set /etc/nova/nova.conf api_database connection mysql+pymysql://nova:NOVA_xx_yyy@192.168.60.88:6306/nova_api
    crudini --set /etc/nova/nova.conf database connection mysql+pymysql://nova:NOVA_xx_yyy@192.168.60.88:6306/nova
    crudini --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_zzz@192.168.60.223:5672
    
    su -s /bin/sh -c "nova-manage api_db sync" nova
    
    #2025-01-17 14:51:17.986 1229364 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 14:51:17.987 1229364 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    #2025-01-17 14:51:17.996 1229364 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 14:51:17.996 1229364 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    
    su -s /bin/sh -c "nova-manage db sync" nova
    
    #/usr/lib/python3.9/site-packages/oslo_policy/policy.py:770: UserWarning: Policy "os_compute_api:os-deferred-delete":"rule:admin_or_owner" was deprecated in 21.0.0 in favor of #"os_compute_api:os-deferred-delete:restore":"rule:project_member_or_admin". Reason:
    #Nova API policies are introducing new default roles with scope_type
    #capabilities. Old policies are deprecated and silently going to be ignored
    #in nova 23.0.0 release.
    #. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
    #  warnings.warn(deprecated_msg)
    #/usr/lib/python3.9/site-packages/oslo_policy/policy.py:770: UserWarning: Policy "os_compute_api:os-deferred-delete":"rule:admin_or_owner" was deprecated in 21.0.0 in favor of #"os_compute_api:os-deferred-delete:force":"rule:project_member_or_admin". Reason:
    #Nova API policies are introducing new default roles with scope_type
    #capabilities. Old policies are deprecated and silently going to be ignored
    #in nova 23.0.0 release.
    #. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
    #  warnings.warn(deprecated_msg)
    #/usr/lib/python3.9/site-packages/oslo_policy/policy.py:770: UserWarning: Policy "os_compute_api:os-rescue":"rule:admin_or_owner" was deprecated in 21.0.0 in favor of "os_compute_api:os-#unrescue":"rule:project_member_or_admin". Reason:
    #Rescue/Unrescue API policies are made granular with new policy
    #for unrescue and keeping old policy for rescue.
    #. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
    #  warnings.warn(deprecated_msg)
    #2025-01-17 14:51:58.827 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Context impl MySQLImpl.
    #2025-01-17 14:51:58.828 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Will assume non-transactional DDL.
    #2025-01-17 14:51:58.837 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Context impl MySQLImpl.
    #2025-01-17 14:51:58.837 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Will assume non-transactional DDL.
    #2025-01-17 14:51:58.845 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Running upgrade 16f1fbcab42b -> ccb0fa1a2252, Add encryption fields #to BlockDeviceMapping
    #2025-01-17 14:52:00.215 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Context impl MySQLImpl.
    #2025-01-17 14:52:00.215 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Will assume non-transactional DDL.
    #2025-01-17 14:52:00.224 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Context impl MySQLImpl.
    #2025-01-17 14:52:00.224 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Will assume non-transactional DDL.
    #2025-01-17 14:52:00.231 1229374 INFO alembic.runtime.migration [None req-0862a936-1b51-47be-9f0c-72119cc26e98 - - - - - -] Running upgrade 16f1fbcab42b -> ccb0fa1a2252, Add encryption fields #to BlockDeviceMapping
  • NEUTRON

    Code Block
    languagebash
    crudini --set /etc/neutron/neutron.conf database connection mysql+pymysql://neutron:NEUTRON_xx_yyy@192.168.60.88:5306/neutron
    crudini --set /etc/neutron/neutron.conf DEFAULT transport_url rabbit://openstack:RABBIT_zzz@192.168.60.223:5672
    crudini --set /etc/neutron/neutron.conf DEFAULT core_plugin ml2
    crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins router
    crudini --set /etc/neutron/neutron.conf DEFAULT allow_overlapping_ips True 
    
    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,vxlan,gre
    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types gre
    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers openvswitch
    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 extension_drivers port_security
    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_flat flat_networks *
    crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_ipset True
    
    su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron
    
    #INFO  [alembic.runtime.migration] Context impl MySQLImpl.
    #INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
    #  Running upgrade for neutron ...
    #INFO  [alembic.runtime.migration] Context impl MySQLImpl.
    #INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
    #INFO  [alembic.runtime.migration] Running upgrade 34cf8b009713 -> I43e0b669096
    #INFO  [alembic.runtime.migration] Running upgrade I43e0b669096 -> 4e6e655746f6
    #INFO  [alembic.runtime.migration] Running upgrade 4e6e655746f6 -> 659cbedf30a1
    #INFO  [alembic.runtime.migration] Running upgrade 659cbedf30a1 -> 21ff98fabab1
    #INFO  [alembic.runtime.migration] Running upgrade 21ff98fabab1 -> 5881373af7f5
    #  OK


  • CINDER

    Code Block
    languagebash
    crudini --set /etc/cinder/cinder.conf database connection mysql+pymysql://cinder:CINDER_xx_yyy@192.168.60.88:5306/cinder
    crudini --set /etc/cinder/cinder.conf DEFAULT transport_url rabbit://openstack:RABBIT_zzz@192.168.60.223:5672
    
    su -s /bin/sh -c "cinder-manage db sync" cinder
    
    #2025-01-17 15:05:50.953 1229734 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 15:05:50.953 1229734 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    #2025-01-17 15:05:50.961 1229734 INFO cinder.db.migration [-] Applying migration(s)
    #2025-01-17 15:05:50.964 1229734 INFO alembic.runtime.migration [-] Context impl MySQLImpl.
    #2025-01-17 15:05:50.964 1229734 INFO alembic.runtime.migration [-] Will assume non-transactional DDL.
    #2025-01-17 15:05:50.971 1229734 INFO alembic.runtime.migration [-] Running upgrade 921e1a36b076 -> c92a3e68beed, Make shared_targets nullable
    #2025-01-17 15:05:51.301 1229734 INFO cinder.db.migration [-] Migration(s) applied


  • EC2

    Code Block
    languagebash
    crudini --set /etc/ec2api/ec2api.conf database connection mysql+pymysql://ec2_user:EC2_xx_yyy@192.168.60.88:4306/ec2
    
    su -s /bin/sh -c "ec2-api-manage db_sync" ec2api
    
    #non scrive nulla ne a video ne a log
  • HEAT

    Code Block
    languagebash
    crudini --set /etc/heat/heat.conf database connection mysql+pymysql://heat:HEAT_xx_yyy@192.168.60.88:4306/heat
    crudini --set /etc/heat/heat.conf DEFAULT transport_url rabbit://openstack:RABBIT_zzz@192.168.60.223:5672
    
    su -s /bin/sh -c "heat-manage db_sync" heat
    
    # non scrive nulla a video ne nei log


  • DASHBOARD: nulla da fare

...