...
Code Block |
---|
./oom_deployment.sh
# 7 min to delete old deployment
ubuntu@ons-dmz:~$ az vm extension list -g a_ONAP_auto_201803181110z --vm-name ons-auto-201803181110z
..
"provisioningState": "Creating",
"settings": {
"commandToExecute": "./oom_entrypoint.sh -b master -s ons-auto-201803181110zons-auto-201803181110z.eastus.cloudapp.azure.com -e onap",
"fileUris": [
"https://jira.onap.org/secure/attachment/11263/oom_entrypoint.sh"
ubuntu@ons-auto-201803181110z:~$ sudo su -
root@ons-auto-201803181110z:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
83458596d7a6 rancher/server:v1.6.14 "/usr/bin/entry /u..." 3 minutes ago Up 3 minutes 3306/tcp, 0.0.0.0:8880->8080/tcp rancher_server
root@ons-auto-201803181110z:~# tail -f /var/log/azure/custom-script/handler.log
time=2018-03-18T22:51:59Z version=v2.0.6/git@1008306-clean operation=enable seq=0 file=0 event="download complete" output=/var/lib/waagent/custom-script/download/0
time=2018-03-18T22:51:59Z version=v2.0.6/git@1008306-clean operation=enable seq=0 event="executing command" output=/var/lib/waagent/custom-script/download/0
time=2018-03-18T22:51:59Z version=v2.0.6/git@1008306-clean operation=enable seq=0 event="executing public commandToExecute" output=/var/lib/waagent/custom-script/download/0
root@ons-auto-201803181110z:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
539733f24c01 rancher/agent:v1.2.9 "/run.sh run" 13 seconds ago Up 13 seconds rancher-agent
83458596d7a6 rancher/server:v1.6.14 "/usr/bin/entry /u..." 5 minutes ago Up 5 minutes 3306/tcp, 0.0.0.0:8880->8080/tcp rancher_server
root@ons-auto-201803181110z:~# ls -la /var/lib/waagent/custom-script/download/0/
total 31616
-rw-r--r-- 1 root root 16325186 Aug 31 2017 helm-v2.6.1-linux-amd64.tar.gz
-rw-r--r-- 1 root root 4 Mar 18 22:55 kube_env_id.json
drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 18 22:53 linux-amd64
-r-x------ 1 root root 2822 Mar 18 22:51 oom_entrypoint.sh
-rwxrwxrwx 1 root root 7288 Mar 18 22:52 oom_rancher_setup.sh
-rwxr-xr-x 1 root root 12213376 Mar 18 22:53 rancher
-rw-r--r-- 1 root root 3736787 Dec 20 19:41 rancher-linux-amd64-v0.6.7.tar.gz
drwxr-xr-x 2 root root 4096 Dec 20 19:39 rancher-v0.6.7 |
20180318: Create VM image without destroying running VM
...