In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The placement service provides a HTTP API for tracking resource provider listings and usage. Placement operates as a web service on the data model. Installation includes creating the necessary databases and installing and configuring the web service. This is a simple process, but there are quite a few steps to integrate placement with the rest of the OpenStack cloud.
some other OpenStack services (especially nova) require placement to be installed, so you should install placement before other services and placement after Identity (keystone).
Installation preparation
Build the library before installing and configuring the placement service.
Set up a database
1. Complete the following database building operations: ○ uses root user login: $mysql-u root-p root123 ○ to establish placement database: MariaDB [(none)] > CREATE DATABASE placement; ○ Grant proper access to the database: MariaDB [(none)] > GRANT ALL PRIVILEGES ON placement.* TO 'placement'@'%' IDENTIFIED BY' placement123';2. Configure User and Endpoints 1. Source the admin credentials to gain access to admin-only CLI commands: $. Admin-openrc 2.Create a Placement service user using your chosen PLACEMENT_PASS: $openstack user create-- domain default-- password-prompt placement User Password:placement123 Repeat User Password:placement123 +-+ | Field | | Value | +-+-+ | domain_id | default | | enabled | True | | id | fa742015a6494a949f67629884fc7ec8 | | name | placement | | options | {} | | password_expires_at | None | +-- -+-- 3. Add the Placement user to the service project with the admin role: $openstack role add-- project service-- user placement admin 4. Create the Placement API entry in the service catalog: $openstack service create-- name placement\ -- description "Placement API" placement +-+-+ | Field | Value | +-+- -+ | description | Placement API | | enabled | True | | id | 2d1a27022e6e4185b86adac4444c495f | | name | placement | | type | placement | + -+-- + 5. Create the Placement API service endpoints: note: the domain name has planned url for you. Must be able to parse. $openstack endpoint create-- region RegionOne placement public http://stack.flex.net:8778 +-- + | Field | Value | +-+-- -- + | enabled | True | | id | 2b1b2637908b4137a9c2e0470487cbc0 | | interface | public | | region | RegionOne | | region_ Id | RegionOne | | service_id | 2d1a27022e6e4185b86adac4444c495f | | service_name | placement | | service_type | placement | | url | http://controller:8778 | +-- -+ $openstack endpoint create-- region RegionOne placement internal http://stack.flex.net:8778 +-+ | Field | Value | | +-+ | enabled | True | | id | 02bcda9a150a4bd7993ff4879df971ab | | interface | internal | | | region | RegionOne | | region_id | RegionOne | | service_id | 2d1a27022e6e4185b86adac4444c495f | | service_name | placement | | service_type | placement | | url | http://controller:8778 | | +-+-- + $openstack endpoint create-- region RegionOne placement admin http://stack.flex.net:8778 + -+ | Field | Value | +-+-+ | enabled | True | | id | 3d71177b9e0f406f98cbff198d74b182 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 2d1a27022e6e4185b86adac4444c495f | | service_name | placement | | service_type | placement | | | url | http://controller:8778 | +-+-- + install and configure component Install the packages:# yum install openstack-placement-api |
Edit the / etc/placement/placement.conf file and complete the following actions:
○ In the [placement_database] section, configure database access: [placement_database] #... Connection = mysql+pymysql://placement:placement123@dbs.flex.net/placement ○ In the [api] and [keystone_authtoken] sections, configure Identity service access: [api] #. Auth_strategy = keystone [keystone_authtoken] #... Auth_url = http://stack.flex.net:5000/v3 memcached_servers = dbs.flex.net:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = placement password = placement123 Note: comment or remove other options dropped in the [keystone_authtoken] area Populate the placement database:# su-s / bin/sh-c "placement-manage db sync" placement complete ○ Restart the httpd service: # systemctl restart httpd check installation
You need permission verification for admin.
Load the access credentials for admin and execute the administrator command: $. Admin-openrc execution status check command: $placement-status upgrade check+--+ | Upgrade Check Results | +-+ | Check: Missing Root Provider IDs | | Result: Success | | Details: None | | +-+ | Check: Incomplete Consumers | | Result: Success | | Details: None | +-+ |
Run the command on placement API (I didn't succeed in this step, but it didn't affect it):
○ Install the osc-placement plugin: $pip install osc-placement ○ List available resource classes and traits: $openstack-- os-placement-api-version 1.2 resource class list-- sort-column name +-- + | name | + -+ | DISK_GB | | IPV4_ADDRESS | |. | $openstack-- os-placement-api-version 1.6 trait list-- sort-column name +-- + | name | | +-+ | COMPUTE_DEVICE_TAGGING | | COMPUTE_NET_ATTACH_INTERFACE | |. |
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.