== Verification of cesnet.rocci.centos7.x86_64-4.3.8 == === Ticket assigned === * [Ticket https://rt.egi.eu/rt/Ticket/Display.html?id=12407] === Install CMD-OS-1 repos === {{{ (!) Note: epel already installed. {{{ [root@test27 ~]# yum install http://repository.egi.eu/sw/production/cmd-os/1/centos7/x86_64/base/cmd-os-release-1.0.1-1.el7.centos.noarch.rpm Dependencies Resolved ====================================================================================================================== Package Arch Version Repository Size ====================================================================================================================== Installing: lcg-CA noarch 1.80-1 EGI-trustanchors 2.0 k voms-clients-cpp x86_64 2.0.14-1.el7 epel 143 k Installing for dependencies: ca-policy-egi-core noarch 1.80-1 EGI-trustanchors 9.6 k ca-policy-lcg noarch 1.80-1 EGI-trustanchors 9.8 k [.....] ca_policy_igtf-slcs noarch 1.80-1 EGI-trustanchors 3.1 k ca_seegrid-ca-2013 noarch 1.80-1 EGI-trustanchors 4.9 k voms x86_64 2.0.14-1.el7 epel 161 k Transaction Summary ====================================================================================================================== Install 2 Packages (+101 Dependent packages) Total download size: 831 k Installed size: 1.2 M Is this ok [y/d/N]: [.....] Complete! }}} (!) Put valid host certificate under /etc/grid-security/ (!) Put valid user certificates under ~/.globus (!) Fill /etc/grid-security/vomsdir/ with the necessary LSC files (!) Fill /etc/vomses/ === Verify occi-client === (!) Creating proxy: {{{ [root@test27 ~]# voms-proxy-init -key ~/.globus/userkey.pem -cert ~/.globus/usercert.pem -certdir /etc/grid-security/certificates/ -voms fedcloud.egi.eu --rfc Enter GRID pass phrase: Your identity: /DC=es/DC=irisgrid/O=cesga/CN=rubendiez Creating temporary proxy ..................................................................... Done Contacting voms1.grid.cesnet.cz:15002 [/DC=org/DC=terena/DC=tcs/C=CZ/ST=Hlavni mesto Praha/L=Praha 6/O=CESNET/CN=voms1.grid.cesnet.cz] "fedcloud.egi.eu" Done Creating proxy ............................................ Done Your proxy is valid until Thu Feb 16 22:26:00 2017 }}} (!) testing: List resources: {{{ [root@test27 ~]# occi --endpoint https://cloud.cesga.es:3202 --action list --resource os_tpl --auth x509 --user-cred /tmp/x509up_u0 --voms http://occi.cloud.cesga.es/occi/infrastructure/os_tpl#uuid_debian6_88 http://occi.cloud.cesga.es/occi/infrastructure/os_tpl#uuid_bncweb_89 [.....] http://occi.cloud.cesga.es/occi/infrastructure/os_tpl#uuid_basic_scientific_linux_6_5_minimal_os_339 [.....] }}} Deploy: {{{ [root@test27 ~]# /opt/occi-cli/bin/occi --endpoint https://cloud.cesga.es:3202/ --action create --resource compute --mixin os_tpl#uuid_basic_scientific_linux_6_5_minimal_os_339 --attribute occi.core.title="probe_rdiez" --auth x509 --user-cred /tmp/x509up_u0 --voms https://cloud.cesga.es:3202/compute/69479 }}} (!) VM appears in OpenNebula dashboard List running VMs: {{{ root@test27 ~]# occi --endpoint https://cloud.cesga.es:3202/ --action list --resource compute --auth x509 --user-cred /tmp/x509up_u0 --voms https://cloud.cesga.es:3202/compute/69479 }}} Delete VM: {{{ [root@test27 ~]# occi --endpoint https://cloud.cesga.es:3202 --action delete --resource https://cloud.cesga.es:3202/compute/69479 --auth x509 --user-cred /tmp/x509up_u0 --voms [root@test27 ~]# occi --endpoint https://cloud.cesga.es:3202/ --action list --resource compute --auth x509 --user-cred /tmp/x509up_u0 --voms }}} (!) VM appears is deleted from OpenNebula dashboard === Finding world-writable files in the packages contents === {{{ [root@test27 ~]# rpm -qalv | egrep "^[-d]([-r][-w][-xs]){2}[-r]w" drwxrwxrwt 2 root root 0 nov 5 11:38 /tmp drwxrwxrwt 2 root root 0 nov 5 11:38 /var/tmp }}}