Versions Compared

Key

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

...

  • Disable the compute node so that it doesn't accept new VMs:

    Code Block
    languagebash
    openstack compute service set --disable cld-np-19.cloud.pd.infn.it nova-compute


Because of a bug (https://bugs.launchpad.net/nova/+bug/1978489) we need to have nova version >= 25.3.0 or 25.2.0 (nova version 25.2.1 is affected by the problem). 






  • Start and enablepuppet:

    Code Block
    languagebash
    systemctl start puppet; systemctl enable puppet


  • Add the host to the 'admin' aggregate (occhio questa cosa che puo' dare problemi con scheduling ma non l'ho capita bene. meglio non farla)


Code Block
nova aggregate-add-host admin cld-nl-25.cloud.pd.infn.it



  • Enable the checks in Nagios for this host

  • Wait till all checks are ok (in particular the VM network and volume one: remember to enable the node just for the time to force the run from Nagios; othwerwise the check will fail.)

  • Add this node in the following scripts on cld-ctrl-01: /usr/local/bin/display_usage_of_hypervisors.sh, /usr/local/bin/host_aggregate.sh, /usr/local/bin/new_project.sh, /usr/local/bin/free_resources_compute_nodes.sh
  • Add this node in the /etc/cron.daily/vm-log.sh script on cld-log
  • Create the directory /var/disk-iscsi/qemu/cld-np-19 in cld-log
  • Verify that a ssh from root@cld-log to root@cld-np-19 works without requiring password
  • Stop puppet on the 2 controller nodes:

    Code Block
    languagebash
    systemctl stop puppet


  • Add the new compute node in cld-config:/var/puppet/puppet_yoga/controller_yoga/templates/aai_settings.py.erb

  • Run puppet on the first controller node (this will trigger a restart of httpd):

    Code Block
    languagebash
    puppet agent -t


  • Run puppet on the second controller node (this will trigger a restart of httpd):

    Code Block
    languagebash
    puppet agent -t
    


  • Start puppet on the two controller nodes:

    Code Block
    languagebash
    systemctl start puppet 
    


  • Enable the host:

    Code Block
    languagebash
    openstack compute service set --enable cld-np-19.cloud.pd.infn.it nova-compute
    
    Add the host to the 'admin' aggregate



  • Run the aggregate_manage.sh script to add the node in the relevant hostgroups, e.g.:

    Code Block
    languagebash
    /usr/local/bin/aggregate_manage.sh add cld-np-19.cloud.pd.infn.it INFN


...