openstack package storops rpm - Murray-LIANG/forgetful GitHub Wiki
Package storops rpm on RHEL
Install a RHEL VM.
-
If using
qcow2
image, the default user iscloud-user
. Use the OpenStack ssh key to login. -
Create a new user
stack
with passwordwelcome
.
$ sudo useradd stack
$ sudo passwd stack
$ sudo visudo
Register subscription
$ sudo subscription-manager register
$ sudo subscription-manager attach --auto
rpm-build
Install the basic packages like $ sudo yum install -y rpm-build git wget python-pip
NOTE: need to upgrade the setuptools
using pip. Otherwise, you'll meet the error like error in storops setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
$ sudo pip install setuptools -U
Install the dependent Python packages of storops
# Configure the yum repo
$ sudo su -
$ cat > /etc/yum.repos.d/common-candidate.repo << EOF
[common-candidate]
name=common-candidate
baseurl=http://cbs.centos.org/repos/cloud7-openstack-common-candidate/x86_64/os
enabled=1
gpgcheck=0
priority=2
EOF
# Install the packages
sudo yum install -y python2-devel python-bitmath python-cachez \
python-dateutil python-ddt python-enum34 python-fasteners \
python-hamcrest python-mock python-persist-queue python-pytest \
python-pytest-xdist python-requests python-retryz python-xmltodict
Build the storops rpms
Refer to https://github.com/emc-openstack/storops/tree/develop/utility/rpm_publish