You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Upload image: 

0、Load environmental parameter: source /etc/nova/openrc
1、Check the image id
glance image-list

2、Export image(the image from the original onap platform)and upload it to the new openstark platform(the operation in the original openstark platform)
glance image-download --file /home/wrsroot/ubuntu_16.0.4.img 87617f8e-9792-4bf1-bffa-93cc8f987a99


/home/wrsroot/ubuntu_16.0.4.img is the storage path and name of the exported image
87617f8e-9792-4bf1-bffa-93cc8f987a99 is the ID of the image that need to be exported


scp ubuntu_16.04.img wrsroot@172.60.2.10:/home/wrsroot/

3、Import image

openstack image create "ubuntu_16.04" --file ubuntu_16.04.img --disk-format qcow2 --docker-format bare --public

In the commands mentioned above openstack is a executable program, image is the operative resource,
create is the operation performed to resource,it means build an image,–file means local image,
–disk-format specify image disk format,–docker-format specify image docker's format,–public means this image can be visited by different projects and users.



Create flavor:

Flavor types which need to be build are:

NamevCPU numberMemory(MB)Root disk(GB)
m2.large1632768200
m2.xlarge3265536200


Steps:1、left column administrator-->system-->cloud host type-->build cloud host type



Config project network-sercuity group-router(*):

Without building network and router,using the default externekl internet instead, you can solve the k8s cluster crossing clouds problem.

Network:(available,this file is chose by create)

Program-->network-->network-->build network-->network's name-->subnet-->subnet's name-->network address(10.0.0.0/16)-->next step->DNS server(180.76.76.76)-->create

Router:(available,this file is chose by create)

1、Program-->network-->router-->router's name--externel network-->external-->build new router
2、Program-->network-->router-->click the new router's name-->interface-->add interface-->choose the newly built network and router-->submit

Security group:

Program-->calculate-->visit and security-->build security group-->name-->build security group-->administrative rule-->add rules

DirectionEther Type(EtherType)IP agreementPort rangeRemote IP prefix
EntranceIPv4ICMPany0.0.0.0/0
EntranceIPv4TCP1-655350.0.0.0/0
EntranceIPv4UDP1-655350.0.0.0/0

Steps:

1、Add rules-->all ICMP agreements-->add
2、Add rules-->customize TCP rules -->open ports(port's range)-->starting port number(1)-->ending port number(65535)-->add
3、Add rules-->customize UDP rules -->open ports(port's range)-->starting port number(1)-->ending port number(65535)-->add

Crossing-clouds problem:

Don't build subnet or router, choose the default external internet.


  • No labels