National Vocational Skills Competition Cloud Computing--Higher Vocational Group Competition Question Paper ⑤ (Private Cloud)

The first session topic: OpenStack platform deployment and operation and maintenance

An enterprise plans to use OpenStack to build an enterprise cloud platform to achieve elastic management of resource pools, centralized management of enterprise applications, unified security authentication and authorization, and other management.
The system architecture is shown in Figure 1, and the IP address planning is shown in Table 1.

Insert image description here
Insert image description here
Instructions:
1. x in the table is the examination position number;
2. According to the information given in the chart, check the hardware connection and network device configuration to ensure that the network connection is normal;
3. The resource packages and attachments required for the exam are given in the exam seat information table;
4. During the competition, please do not change the password of the server system, otherwise the competition system may not be able to detect and score properly, and the responsibility lies with the contestants themselves.

Task 1 Basic operation and maintenance tasks (5 points)

1. According to the IP address plan in Table 1, set the IP address of each server node to ensure normal network communication. Set the host name of cloud server 1 as Controller and the host name of cloud server 2 as Compute, and modify the hosts file to map the IP address to the host name. , turn off the firewall and set it to not start at boot, and set SELinux to Permissive mode.
2. Upload the provided CentOS-7-x86_64-DVD-1804.iso and OpenStackQueens.iso CD images to the /root directory of the Controller server, then create the centos directory and openstack directory respectively in the /opt directory, and copy the image file CentOS- Mount 7-x86_64-DVD-1804.iso to the centos directory, and mount the image file OpenStackQueens.iso to the openstack directory.
3. On the Controller node, use the software package in the centos directory to install the vsftp server and set it to start automatically at boot, provide yum warehouse service, and set the yum source file ftp.repo of the controller node and compute node respectively, where the node address uses the IP form.
4.Deploy the chrony server on the Controller server, allow other nodes to synchronize time, start the service and set it to start at startup; specify the controller server node as the upstream NTP server on the compute node, restart the service and set it to start at startup.
5. Check the partition situation on the compute node and use the blank partition to divide two 100G partitions.

Task 2 OpenStack construction task (15 points)

1. Install the quickinstall software package on the control node and computing node respectively, and configure the basic variables in the script file according to Table 2 (the configuration script file is /etc/cloudconfig/openrc.sh).

Insert image description here
2. Use the /usr/local/bin/openstack-install-mysql.sh script to install Mariadb, Memcached, etcd services on the controller node.
3. Use the /usr/local/bin/openstack-install-keystone.sh script to install the Keystone service on the controller node.
4.Use the /usr/local/bin/openstack-install-glance.sh script to install the glance service on the controller node.
5. Use the /usr/local/bin/openstack-install-nova-controller.sh script and /usr/local/bin/openstack-install-nova-compute.sh script to install the Nova service on the controller node and compute node respectively.
6.Modify the /usr/local/bin/openstack-install-neutron -controller.sh script and /usr/local/bin/openstack-install-neutron-compute.sh script on the controller node and compute node respectively to install the Neutron service, network Select vlan mode.
7. Use the /usr/local/bin/openstack-install-heat.sh script to install the dashboad service on the controller node.
8. Modify the /usr/local/bin/openstack-install-cinder -controller.sh script and /usr/local/bin/openstack-install-cinder-compute.sh script on the controller node and compute node respectively to install the cinder service.

Task 3 OpenStack cloud platform operation and maintenance (15 points)

1. Use the provided cloud security framework component to optimize the keystone security policy in http://172.18.x.10/dashboard from http to https. (0.5 points)
2. On the openstack private cloud platform, add controller node resources to the cloud platform. (1 point)
3. On the openstack private cloud platform, use the command to create an image named cirros based on the cirrrors.qcow2 image. (0.5 points).
4.On the openstack private cloud platform, configure the cloud host internal network intnet and external network extnet (use vlan network mode, the cloud host floating IP network segment is 172.18.x.0/24, the gateway is 172.18.x.1, where x is the test bit number), and complete the connection between the internal network and the external network. (1 point)
5. Use the CentOS_7.5_x86_64.qcow2 file on the PC to create a cloud host Hostrans on the openstack private cloud platform, bind the floating IP, and start the cloud host. (0.5 points)
6. On the openstack private cloud platform, migrate the cloud host Hostrans to another computing node using manual migration (0.5 points)
7. On the openstack private cloud platform, create a volume type named "lvm", create 2 10G cloud disks with the volume type lvm, and attach them to the virtual machine Hostrans. (1 point)
8. On the virtual machine Hostrans, use an attached cloud disk to create an lvm and mount it to the /opt directory. (1 point)
9. Use the image centos7 to create two cloud hosts master and slave, and bind floating IPs respectively; install the mysql database system on these two cloud hosts and configure the master-slave database (master is the master node, slave is the slave node); and Create the ChinaSkilldb library in the database of mater cloud host, create the table testable (id int not null primary key, Teamname varchar(50), remarks varchar(255)) in the ChinaSkilldb library, and insert the record (1, "Cloud" into the table , "ChinaSkill"). (2 points)
10. Use the image Openstack-error-5.qcow2 to rebuild the cloud host "all-in-one" (account: root password: 000000). In the openstack platform in the rebuilt cloud host, one cloud host disk is insufficient, and a disk needs to be mounted to the cloud host. When the administrator uses the cinder service to create a disk, an error occurs. Please use the error message to troubleshoot the error so that the function can be used normally. (2 minutes)

Task 4 OpenStack cloud platform operation and maintenance development (15 points, this task only announces the exam scope, not the competition questions)

This task contains 2-4 subtasks, which involve writing Python scripts to call the OpenStack API to manage and operate the Openstack cloud platform. Use the automated operation and maintenance tool ansible to perform operation and maintenance operations such as batch system configuration, batch program deployment, and batch running of commands on cloud hosts.

Need to send private messages to bloggers about the environment! ! !

Guess you like

Origin blog.csdn.net/Aluxian_/article/details/132970295