The following section describes how to include config snippets in the ssh configuration of your local system to simplify access to systems of the vp18 hardware landscape.
- User: Clone the repository
cd <your-sourcecode-dir> git clone git@github.com:SovereignCloudStack/hardware-landscape.git cd hardware-landscape SCS_ENV_DIR="$(pwd)" GITHUB_ID="scoopex"
- User: Add this snippet to your SSH configuration:
cat >> ~/.ssh/config <<EOF Include ${SCS_ENV_DIR:?}/config-snippets/ssh_config_scs_servers Include ${SCS_ENV_DIR:?}/config-snippets/ssh_config_scs_switches Include ${SCS_ENV_DIR:?}/config-snippets/ssh_config_scs_general Host scs-* !scs-manager !scs-manager1 !scs-manager2 ProxyJump scs-manager # Your github id, use "osism" or "dragon" when your are in the # installation process User ${GITHUB_ID:?} Host scs-manager scs-manager1 scs-manager2 # Your github id, use "osism" or "dragon" when your are in the # installation process User ${GITHUB_ID:?} EOF
- Optional, Admin: Update the SSH configuration
(this fetches host information from the documentation in documentation/devices and creates new ssh config snippets)
cd ${SCS_ENV_DIR:?} git pull ./switch_ctl -c all ./server_ctl -c all
- User: Login to manager
ssh scs-manager
- User: Login to systems directly from your workstation
ssh scs-<TAB><TAB>
-
Login to first manager
ssh scs-ömanager
-
Attach to a running screen session which provides access to the ttypS0..ttySX interfaces or create automatically a new one
scs_serial_access
-
Restart all sessions
- Attach to running session
scs_serial_access
- Terminate sessions by STRG+y :quit
- Restart terminals
scs_serial_access
- Attach to running session
-
Review console output see /var/log/screen
-
Screen Usage :
- 'CTLR + y d' leave the session
- 'CTLR + y, "' select your terminal
- 'CTLR + y, :quit' terminate screen entirely
- 'CTLR + y, :break'
send a break signal
- Use the screen command press 'STRG+y' send a break signal: ':break'
- Hit the sysrq char "b" multiple times
- Watch the hardware booting :-)
The following section describes how to regenerate inventory files based on the documentation in documentation/devices.
- Enter configuration directory and verify that there are no open changes
cd <your-sourcecode-dir>/hardware-landscape git stash git checkout -b "update-inventory-files"
- Regenerate inventory files
./server_ctl --ansible all ./switch_ctl --ansible all
- Check changes
git diff
- Merge changes
git commit ... git push ...
Execute the following command to have access to lab networks:
sshuttle -r scs-manager 10.10.23.0/24 10.10.22.0/24 10.10.21.0/24