SUSE Manager/SuseOpenstackCloud

From MicroFocusInternationalWiki
Jump to: navigation, search

SUSE Manager Main Page

Managing SUSE Openstack Cloud nodes with SUSE Manager

There is a barclamp for SUSE Openstack Cloud (SOC) that enables to register your cloud nodes (including the cloud's admin node!) inside SUSE Manager. This barclamp is called "SUSE Manager Client" and is part of the crowbar barclamps.

The instructions below have been tested with Cloud 7 development version (milestone 7) and SUSE Manager 3.0.3. SUSE Manager 3.0.3 is the minimal version for using Cloud 7. There are other valid version combinations of SUSE Openstack Cloud and SUSE Manager, but the instructions might differ a bit.

Prerequisites

You must have installed:

  • SUSE Openstack Cloud 7
  • SUSE Manager Server 3.0.3

The SUSE Manager Server must be reachable from the cloud's nodes, and its host name must match proper direct and reverse DNS entries (otherwise the SSL security will suspect a spoofing attempt).

Steps on the SUSE Manager server

  1. Select Admin in the top menu and choose SUSE Products tab. Add SUSE Linux Enterprise Server 12 SP2 channel for x86_64.
  2. Press the cross on the left of this channel's name to show its child channels. Add SUSE OpenStack Cloud 7 x86_64 child channel.
  3. Wait for the synchronization of these two channels to end.
  4. Select Systems on the top menu and choose Activation keys in left menu. If not done already, create a key for the SLES 12 SP2 channel by pressing "Create Key" on the top right. Name it 1-sles-12-sp2.
  5. Select the newly created activation key, and in the "Child Channels" tab, select all five channels (SLE-Manager-Tools12-Pool x86_64 SP2, SLE-Manager-Tools12-Updates x86_64 SP2, SLES12-SP2-Updates for x86_64, SUSE-OpenStack-Cloud-7-Pool for x86_64, and SUSE-OpenStack-Cloud-7-Updates for x86_64). Press Update Key button.
  6. If not already done, create the tools repository for SLES12 SP2, by dropping to a command line and entering mgr-create-bootstrap-repo -c SLE-12-SP2-x86_64 command.
  7. If you have not created a bootstrap script template yet, do it now. Select Admin in the top menu, click SUSE Manager Configuration on left menu, and select Bootstrap Script tab. Press Update.
  8. Drop to a command line and do cd /srv/www/htdocs/pub/bootstrap/ then cp bootstrap.sh bootstrap-sles12-sp2.sh. Edit the newly created file to comment out line exit 1 and to add the name of your activation key after ACTIVATION_KEYS=. At this point, you should have # exit 1 and ACTIVATION_KEYS=1-sles-12-sp2 in that file.
  9. Check that everything looks fine by opening in a web browser the URL https://yourserver.example.com/pub/ (replace the server name by the hostname of your SUSE Manager server). You should see there two folders, bootstrap/ and repositories/, plus a file named rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm. When opening the bootstrap/ folder, you should see the bootstrap script bootstrap-sles12-sp2.sh you just created.

Steps on the Cloud admin node

  1. Drop to a command line and type wget https://yourserver.example.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm (using the hostname of your SUSE Manager server), then mv rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm /opt/dell/chef/cookbooks/suse-manager-client/files/default/ssl-cert.rpm, and finaly knife cookbook upload suse-manager-client -o /opt/dell/chef/cookbooks.
  2. Go to Barclamps menu and select Crowbar. In front of SUSE Manager Client, press Create.
  3. In the URL of the bootstrap script field, type https://yourserver.example.com/pub/bootstrap/bootstrap-sles12-sp2.sh (replace the server's hostname).
  4. Drag all the nodes that you want registered on your SUSE Manager server and drop them onto suse-manager-client area on the right that materializes this role.
  5. Press Save, then Apply, and wait for the barclamp to apply.

Back to the SUSE Manager server

The cloud's nodes should be listed among the systems you manage in SUSE Manager.