3.1. Managing and Maintaining Computing Resources¶
3.1.1. New accounts¶
3.1.1.1. New SO:UK VO membership¶
Go to VOMS Admin > souk.ac.uk and manage there.
3.1.1.2. Adding new users on the submit node vm77¶
Point the user to this section and ask them to send those info to you.
If the user ssh key comment contains their email address, replace it with something else.
Edit
/usr/local/etc/staged/common.yamlonvm77, replace the followingALL_CAPvariables accordingly,common::users: USER_NAME: uid: UID comment: FIRST_NAME LAST_NAME home: /home/USER_NAME keys: - "ssh-ed25519 KEY_VALUE COMMENT" password: "$6$...$..." groups: - sudo - simonsobservatory
Note
For
UID, increments according to the list. Just make sure it has not been used.For
sudogroups, obviously only grant those you want them to have sudo privillege.Tell Robert to update.
To check if the config is populated, check the file
/etc/passwdand see if the new users is there. If it does, the user should be ready to go.
Warning
The content of this file contains sensitive information,
such as salted, hashed passwords,
which is configured to be readable only to root at /etc/shadow.
Hence, the config file /usr/local/etc/staged/common.yaml should be treated
with the same level of permission.
3.1.1.3. Register as a new content manager (CVMFS)¶
Run
ssh northgridsgm@cvmfs-upload01.gridpp.rl.ac.ukfrom any computer. Then you’d see something like(northgridsgm@cvmfs-upload01.gridpp.rl.ac.uk) Authenticate at ----------------- https://aai.egi.eu/device?user_code=... ----------------- Hit enter when you have finished authenticating
Follow the link and register there.
On https://aai.egi.eu/auth/realms/egi/account/#/personal-info, copy the content of “Username” field.
Follow CVMFS - GridPP Wiki to send an email including the username above as your
voperson_id:
Name of the VO or CVMFS repository:
northgrid.gridpp.ac.ukThe “voperson_id” from your account in EGI CheckIn: …@egi.eu
Wait for email from lcg-support@gridpp.rl.ac.uk when the admin added you to the service.
3.1.2. Software deployments¶
3.1.2.1. Publishing to CVMFS¶
See above if you haven’t applied for the role of content manager yet.
Then
ssh northgridsgm@cvmfs-upload01.gridpp.rl.ac.uk
The recommended ssh config is:
Host cvmfs
HostName cvmfs-upload01.gridpp.rl.ac.uk
User northgridsgm
ControlPath ~/.ssh/control-%r@%h:%p
ControlMaster auto
ControlPersist yes
Then starts to write something in ~/cvmfs_repo/simonsobservatory. What you write will immediately be available at /cvmfs/northgrid.gridpp.ac.uk/simonsobservatory on this publishing node. But it will only be synchronized to other sites with a time scale of around 2.5-3 hours.
On vm77, check if you see your stuffs is in /cvmfs/northgrid.gridpp.ac.uk/simonsobservatory already, if so, you can start to submit jobs that reads from there.
3.1.3. Monitoring¶
3.1.3.1. condor_status¶
See condor_status — HTCondor Manual for details.
sudo condor_statuslist all nodes in the pool along with their basic status information
sudo condor_status -longfor more detailed information about each node
sudo condor_status -constraint 'Arch == "x86_64"'see available nodes after constraints
condor_status -availLists available nodes
sudo condor_status -format "%s\n" Machine | sort -uLists only the machine names
sudo condor_status -autoformat Machine Arch Microarch | sort -uAuto-format instead.