Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Update a docker image

>sudo docker login -u docker -p docker nexus3.onap.org:10001

...

#Template env file for HEAT deployment


Code Block
languagetext
titleHeat Template Evn File
linenumberstrue
collapsetrue
xuyang11@pod-onap-01-vjhost:~/Integration-SB-03$ cat onap_openstack.env
parameters:

  ##############################################
  #                                            #
  # Parameters used across all ONAP components #
  #                                            #
  ##############################################

  public_net_id: 971040b2-7059-49dc-b220-4fab50cb2ad4

  public_net_name: external

  ubuntu_1404_image: ubuntu-14-04-cloud-amd64

  ubuntu_1604_image: ubuntu-16-04-cloud-amd64

  flavor_small: m1.small

  flavor_medium: m1.medium

  flavor_large: m1.large

  flavor_xlarge: m1.xlarge

  flavor_xxlarge: m1.xlarge

  vm_base_name: onap

  key_name: onap_key

  pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh

  nexus_repo: https://nexus.onap.org/content/sites/raw

  nexus_docker_repo: nexus3.onap.org:10001

  nexus_username: docker

  nexus_password: docker

  dmaap_topic: AUTO

  artifacts_version: 1.2.0-SNAPSHOT

  openstack_tenant_id: bc43d50ffcb84750bac0c1707a9a765b

  openstack_tenant_name: Integration-SB-03

  openstack_username: demo

  openstack_api_key: onapdemo

  openstack_auth_method: password

  openstack_region: RegionOne

  horizon_url: http://10.12.25.2/horizon

  keystone_url: http://10.12.25.2:5000

  cloud_env: openstack

  ######################
  #                    #
  # Network parameters #
  #                    #
  ######################

  dns_list: ["10.12.25.5", "8.8.8.8"]
  external_dns: 8.8.8.8
  dns_forwarder: 10.12.25.5
  oam_network_cidr: 10.0.0.0/16

  ### Private IP addresses ###

  aai1_ip_addr: 10.0.1.1
  aai2_ip_addr: 10.0.1.2
  appc_ip_addr: 10.0.2.1
  dcae_ip_addr: 10.0.4.1
  dns_ip_addr: 10.0.100.1
  so_ip_addr: 10.0.5.1
  mr_ip_addr: 10.0.11.1
  policy_ip_addr: 10.0.6.1
  portal_ip_addr: 10.0.9.1
  robot_ip_addr: 10.0.10.1
  sdc_ip_addr: 10.0.3.1
  sdnc_ip_addr: 10.0.7.1
  vid_ip_addr: 10.0.8.1
  clamp_ip_addr: 10.0.12.1
  openo_ip_addr: 10.0.14.1
  music_ip_addr: 10.0.15.1
  oof_ip_addr: 10.0.16.1
  aaf_ip_addr: 10.0.13.1
  nbi_ip_addr: 10.0.17.1

  ###########################
  #                         #
  # Parameters used by DCAE #
  #                         #
  ###########################

  dcae_deployment_profile: R2MVP
  dnsaas_config_enabled: True
  dnsaas_region: RegionOne
  dnsaas_keystone_url: http://10.12.25.5:5000/v3
  dnsaas_tenant_name: Integration-SB-03
  dnsaas_username: demo
  dnsaas_password: onapdemo
  dcae_keystone_url: http://10.0.14.1/api/multicloud-titanium_cloud/v0/pod25_RegionOne/identity/v2.0
  dcae_centos_7_image: CentOS-7
  dcae_domain: dcaeg2.onap.org
  dcae_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBq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rmz1ectnJE+rAoGBAM3w\n
UbSEemyZ6EKjck2RfdipzY0MNBnIZ2cUqHh8mmPXjdTLzpXb9vmPbHb01Qwo8MP+\n
gMnTbTBOzyNAaHdIrCO9FHW6C85j3ot5Yzcr+EcBVcua+7KHU0Sgn44JNH8DisJ7\n
Y63UP/1Xb4d1/QvHfxYy3WOvvRdVZ7pPo8JNX95jAoGAIe5CIg8/JizUZa7KeKUh\n
9pgDleQPkQsrHQ6/AyIwFBsLwf9THSS5V+uV9D57SfUs46Bf2U8J6N90YQSlt8iS\n
aWuManFPVgT+yxDIzt6obf2mCEpOIBtQ6N4ZRh2HhQwdWTCrkzkDdGQaHG+jYL6C\n
xGPwiG2ON7OAfGIAM7eN5lECgYEAhoRLWlaOgRGnHKAWsYQvZ67CjTdDcPPuVu6v\n
fMQnNMA/7JeTwV+E205L0wfpgZ/cZKmBBlQMJlnUA3q2wfO+PTnse1mjDJU/cGtB\n
22/lJLxChlQdxGeQhGtGzUhF+hEeOhrO6WSSx7CtMRZoy6Dr6lwfMFZCdVNcBd6v\n
YOOZk3ECgYEAseUKGb6E80XTVVNziyuiVbQCsI0ZJuRfqMZ2IIDQJU9u6AnGAway\n
itqHbkGsmDT+4HUz01+1JKnnw42RdSrHdU/LaOonD+RIGqe2x800QXzqASKLdCXr\n
y7RoiFqJtkdFQykzJemA+xOXvHLgKi/MXFsU90PCD0VJKLj8vwpX78Y=\n
-----END RSA PRIVATE KEY-----'

  ################################
  #                              #
  # Docker versions and branches #
  # Generated using onap_openstack_template.env and manifest-to-env.sh
  #                              #
  ################################

  aai_branch: master
  appc_branch: master
  so_branch: master
  mr_branch: master
  policy_branch: master
  portal_branch: master
  robot_branch: master
  sdc_branch: master
  sdnc_branch: master
  vid_branch: master
  clamp_branch: master
  vnfsdk_branch: master
  music_branch: master
  nbi_branch: master
  aaf_branch: master
  oof_branch: master


  aai_docker: 1.2-STAGING-latest
  aai_sparky_docker: 1.2-STAGING-latest
  appc_docker: 1.3.0-SNAPSHOT-latest
  so_docker: 1.2.1
  policy_docker: 1.2-STAGING-latest
  portal_docker: 2.1-STAGING-latest
  robot_docker: 1.2-STAGING-latest
  sdc_docker: 1.2-STAGING-latest
  sdnc_docker: 1.3-STAGING-latest
  vid_docker: 1.2.1
  clamp_docker: 2.0-STAGING-latest
  msb_docker: 1.1.0-STAGING-latest
  mvim_docker: v1.0.0
  uui_docker: 1.1.0-SNAPSHOT-STAGING-latest
  esr_docker: 1.1.0-SNAPSHOT
  sdc_wfd_docker: 1.1.0-SNAPSHOT-STAGING-latest
  dgbuilder_docker: 0.2.1-SNAPSHOT
  cli_docker: 2.0-STAGING-latest
  music_docker: latest
  oof_docker: latest
  aaf_docker: 2.1.0-SNAPSHOT
  nbi_docker: latest

  dcae_docker:  1.1.2
  dcae_snmptrap_docker:  latest
  dcae_ves_docker:  latest
  dcae_bootstrap_docker: 1.1.2
  dcae_cm_docker: latest
  dcae_k8sbootstrap_docker: latest
  dcae_redisc_docker: latest
  dcae_tca_docker: latest
  dcae_cb_docker: v4.0.0
  dcae_cbs_docker: latest
  dcae_dh_docker: latest
  dcae_inv_docker: latest
  dcae_ph_docker: latest
  dcae_sch_docker: latest
  dcae_heartbeat_docker: latest
  dcae_prh_docker: latest
  holmes_rm_docker: v1.0.0
  holmes_em_docker: v1.0.0

  vfc_nokia_docker: 1.1.0-STAGING-latest
  vfc_nokiav2_docker: 1.1.0-STAGING-latest
  vfc_ztevnfmdriver_docker: 1.1.0-STAGING-latest
  vfc_ztesdncdriver_docker: 1.1.0-STAGING-latest
  vfc_vnfres_docker: 1.1.0-STAGING-latest
  vfc_vnfmgr_docker: 1.1.0-STAGING-latest
  vfc_vnflcm_docker: 1.1.0-STAGING-latest
  vfc_resmanagement_docker: 1.1.0-STAGING-latest
  vfc_nslcm_docker: 1.1.0-STAGING-latest
  vfc_huawei_docker: 1.1.0-STAGING-latest
  vfc_jujudriver_docker: 1.1.0-STAGING-latest
  vfc_gvnfmdriver_docker: 1.1.0-STAGING-latest
  vfc_emsdriver_docker: 1.1.0-STAGING-latest
  vfc_catalog_docker: 1.1.0-STAGING-latest
  vfc_wfengine_mgrservice_docker: latest
  vfc_wfengine_activiti_docker: latest
  vfc_multivimproxy_docker: 1.0.0-STAGING-latest

  ############################################
  #                                          #
  # Parameters used by Nokia v2 SVNFM driver #
  #                                          #
  ############################################

  cbam_username: onapUsername
  cbam_password: onapPassword
  cbam_ip: kuku

  #####################
  #                   #
  # ONAP repositories #
  #                   #
  #####################
  aai_repo: http://gerrit.onap.org/r/aai/test-config
  appc_repo: http://gerrit.onap.org/r/appc/deployment.git
  mr_repo: http://gerrit.onap.org/r/dcae/demo/startup/message-router.git 
  so_repo: http://gerrit.onap.org/r/so/docker-config.git
  policy_repo: http://gerrit.onap.org/r/policy/docker.git
  portal_repo: http://gerrit.onap.org/r/portal.git
  robot_repo: http://gerrit.onap.org/r/testsuite/properties.git
  sdc_repo: http://gerrit.onap.org/r/sdc.git
  sdnc_repo: http://gerrit.onap.org/r/sdnc/oam.git
  vid_repo: http://gerrit.onap.org/r/vid.git
  clamp_repo: http://gerrit.onap.org/r/clamp.git
  vnfsdk_repo: http://gerrit.onap.org/r/vnfsdk/refrepo.git
  music_repo: http://gerrit.onap.org/r/music.git
  nbi_repo: http://gerrit.onap.org/r/externalapi/nbi.git
  aaf_repo: http://gerrit.onap.org/r/aaf/authz.git
  oof_repo: http://gerrit.onap.org/r/optf/has.git


#Update a docker image. e.g. update esr_server docker image. 

Code Block
>sudo docker login -u docker -p docker nexus3.onap.org:10001
>sudo docker pull nexus3.onap.org:10001/onap/aai/esr-server:1.1.0-SNAPSHOT

...


>sudo docker stop esr_server

...


>sudo docker rm esr_server

...


>docker run -i -t -d -p 9518:9518 -e MSB_ADDR=10.0.11.1:443 --name esr_

...

server nexus3.onap.org:10001/onap/aai/esr-server:1.1.0-SNAPSHOT

You can also call esr_vm_init.sh directly on onap-multi-service