rabbitmq-server fails in allinone install with packstrack?

Error: Could not start Service[rabbitmq-server]: Execution of ‘/usr/bin/systemctl start rabbitmq-server’ returned 1

Possible reason could be your hostname is not set properly.

Update your /etc/hostname and /etc/hosts to start rabbirmq-server

iptables not started while running packstak?

With  RHEL6*, centos6* , There were occurrences where iptables fails to start as /etc/sysconfig/iptables file was missing.

Workaround:

Create an empty one and get started

During RHEL/centos 7, there is similar issue inspite of file exists.

iptables-save > /etc/sysconfig/iptables

iptables starts as usual.

Configure RHEL OSP All in one

RHEL OSP 7 configuration

yum -y install net-tools nano

subscription-manager repos –disable=*
subscription-manager repos –enable=rhel-7-server-rpms
subscription-manager repos –enable=rhel-7-server-rh-common-rpms
subscription-manager repos –enable=rhel-7-server-openstack-6.0-installer-rpms
subscription-manager repos –enable=rhel-server-rhscl-7-rpms
subscription-manager repos –enable=rhel-7-server-openstack-6.0-rpms

yum update -y
systemctl disable NetworkManager
reboot
yum -y install openstack-packstack
packstack –allinone

 

 

Clean RHEL OSP setup

Add below to /etc/yum.conf

clean_requirements_on_remove=1

Remove below

yum -y remove rhel-osp-installer foreman* puppet postgresql* dhcp bind httpd
rm -rf /var/lib/tftpboot /etc/puppet/ /var/lib/puppet/ /var/lib/dhcpd/ /etc/foreman* /var/lib/foreman/ /etc/named/ /var/named/  /var/lib/pgsql /etc/httpd

Remove bridge

ifcfg-br-ex

Run Openstack rally

1) Build devstack

2) Get rally and install

git clone https://github.com/openstack/rally.git

[stack@localhost rally]$ ./install_rally.sh

3) Register which openstack setup needs to be benchmark

./openrc admin admin

stack@localhost rally]$ rally deployment create –fromenv –name=existing
+————————————–+—————————-+———-+——————+——–+
| uuid | created_at | name | status | active |
+————————————–+—————————-+———-+——————+——–+
| 364f0c5d-40cc-4fbe-8788-ef7c3268912e | 2015-05-26 05:19:30.396097 | existing | deploy->finished | |
+————————————–+—————————-+———-+——————+——–+
Using deployment: 364f0c5d-40cc-4fbe-8788-ef7c3268912e
~/.rally/openrc was updated

HINTS:
* To get your cloud resources, run:
rally show [flavors|images|keypairs|networks|secgroups]

* To use standard OpenStack clients, set up your env by running:
source ~/.rally/openrc
OpenStack clients are now configured, e.g run:
glance image-list
[stack@localhost rally]$ rally deployment check
keystone endpoints are valid and following services are available:
+———-+————+———–+
| services | type | status |
+———-+————+———–+
| cinder | volume | Available |
| cinderv2 | volumev2 | Available |
| ec2 | ec2 | Available |
| glance | image | Available |
| keystone | identity | Available |
| nova | compute | Available |
| novav21 | computev21 | Available |
+———-+————+———–+
[stack@localhost rally]$

4) Run tests

[stack@localhost rally]$ rally task start samples/tasks/scenarios/nova/boot-and-delete.json
——————————————————————————–
Preparing input task
——————————————————————————–

Input task is:
{
“NovaServers.boot_and_delete_server”: [
{
“args”: {
“flavor”: {
“name”: “m1.tiny”
},
“image”: {
“name”: “^cirros.*uec$”
},
“force_delete”: false
},
“runner”: {
“type”: “constant”,
“times”: 10,
“concurrency”: 2
},
“context”: {
“users”: {
“tenants”: 3,
“users_per_tenant”: 2
}
}
}
]
}

——————————————————————————–
Task 7c19d223-e107-4454-9640-7d1f3af89eb8: started
——————————————————————————–

Benchmarking… This can take a while…

To track task status use:

rally task status
or
rally task detailed

Using task: 7c19d223-e107-4454-9640-7d1f3af89eb8

——————————————————————————–
Task 7c19d223-e107-4454-9640-7d1f3af89eb8: finished
——————————————————————————–

test scenario NovaServers.boot_and_delete_server
args position 0
args values:
{
“runner”: {
“type”: “constant”,
“concurrency”: 2,
“times”: 10
},
“args”: {
“force_delete”: false,
“flavor”: {
“name”: “m1.tiny”
},
“image”: {
“name”: “^cirros.*uec$”
}
},
“context”: {
“users”: {
“project_domain”: “default”,
“users_per_tenant”: 2,
“tenants”: 3,
“resource_management_workers”: 30,
“user_domain”: “default”
}
}
}
+——————————————————————————————–+
| Response Times (sec) |
+——————–+——–+——–+——–+——–+——–+——–+———+——-+
| action | min | median | 90%ile | 95%ile | max | avg | success | count |
+——————–+——–+——–+——–+——–+——–+——–+———+——-+
| nova.boot_server | 17.498 | 19.333 | 31.515 | 35.744 | 39.974 | 22.305 | 100.0% | 10 |
| nova.delete_server | 2.221 | 2.248 | 2.276 | 2.278 | 2.28 | 2.249 | 100.0% | 10 |
| total | 19.742 | 21.589 | 33.785 | 37.99 | 42.195 | 24.554 | 100.0% | 10 |
+——————–+——–+——–+——–+——–+——–+——–+———+——-+
Load duration: 127.890596867
Full duration: 134.465722084

HINTS:
* To plot HTML graphics with this data, run:
rally task report 7c19d223-e107-4454-9640-7d1f3af89eb8 –out output.html

* To get raw JSON output of task results, run:
rally task results 7c19d223-e107-4454-9640-7d1f3af89eb8

[stack@localhost rally]$

Openstack: nova boot

1) Get Images list

[stack@localhost devstack]$ glance image-list
+————————————–+———————————+————-+——————+———-+——–+
| ID | Name | Disk Format | Container Format | Size | Status |
+————————————–+———————————+————-+——————+———-+——–+
| 2ea362d6-3cf3-4e9f-8cad-5a574cc1bdc9 | cirros-0.3.2-x86_64-uec | ami | ami | 25165824 | active |
| 66b6e2b2-8ffe-48d9-a5d0-0d1fffcbef80 | cirros-0.3.2-x86_64-uec-kernel | aki | aki | 4969360 | active |
| f872358e-7e24-4b86-88c4-c9719e1e63b6 | cirros-0.3.2-x86_64-uec-ramdisk | ari | ari | 3723817 | active |
+————————————–+———————————+————-+——————+———-+——–+

2) get flavor’s list

[stack@localhost devstack]$ nova flavor-list
+—-+———–+———–+——+———–+——+——-+————-+———–+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+—-+———–+———–+——+———–+——+——-+————-+———–+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True |
+—-+———–+———–+——+———–+——+——-+————-+———–+

3) Boot Image with specific flavour and name.

[stack@localhost devstack]$ nova boot 2ea362d6-3cf3-4e9f-8cad-5a574cc1bdc9 1
[stack@localhost devstack]$ nova boot –flavo 1 –image  2ea362d6-3cf3-4e9f-8cad-5a574cc1bdc9 abc
+————————————–+—————————————————————-+
| Property                             | Value                                                          |
+————————————–+—————————————————————-+
| OS-DCF:diskConfig                    | MANUAL                                                         |
| OS-EXT-AZ:availability_zone          | nova                                                           |
| OS-EXT-SRV-ATTR:host                 | –                                                              |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | –                                                              |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000002                                              |
| OS-EXT-STS:power_state               | 0                                                              |
| OS-EXT-STS:task_state                | scheduling                                                     |
| OS-EXT-STS:vm_state                  | building                                                       |
| OS-SRV-USG:launched_at               | –                                                              |
| OS-SRV-USG:terminated_at             | –                                                              |
| accessIPv4                           |                                                                |
| accessIPv6                           |                                                                |
| adminPass                            | ryZeHJ4BPy99                                                   |
| config_drive                         |                                                                |
| created                              | 2015-04-10T17:38:30Z                                           |
| flavor                               | m1.tiny (1)                                                    |
| hostId                               |                                                                |
| id                                   | 31d1014e-4590-4cd3-81e2-725258d4bb6b                           |
| image                                | cirros-0.3.2-x86_64-uec (2ea362d6-3cf3-4e9f-8cad-5a574cc1bdc9) |
| key_name                             | –                                                              |
| metadata                             | {}                                                             |
| name                                 | abc                                                            |
| os-extended-volumes:volumes_attached | []                                                             |
| progress                             | 0                                                              |
| security_groups                      | default                                                        |
| status                               | BUILD                                                          |
| tenant_id                            | 9e540565df04456c815fdccdef0daa2c                               |
| updated                              | 2015-04-10T17:38:30Z                                           |
| user_id                              | 6ffbead5210a42548797d51abe56acc2                               |
+————————————–+—————————————————————-+
[stack@localhost devstack]$ nova list

Initially spawning

+————————————–+——+——–+————+————-+——————+
| ID | Name | Status | Task State | Power State | Networks |
+————————————–+——+——–+————+————-+——————+
| 31d1014e-4590-4cd3-81e2-725258d4bb6b | abc | BUILD | spawning | NOSTATE | private=10.0.0.2 |
+————————————–+——+——–+————+————-+——————+

Now active

[stack@localhost devstack]$ nova list
+————————————–+——+——–+————+————-+——————+
| ID | Name | Status | Task State | Power State | Networks |
+————————————–+——+——–+————+————-+——————+
| 31d1014e-4590-4cd3-81e2-725258d4bb6b | abc | ACTIVE | – | Running | private=10.0.0.2 |
+————————————–+——+——–+————+————-+——————+
[stack@localhost devstack]$

Resend Patch to Gerrit

1) You must be having git already. ( for ex: Rally)

git clone https://github.com/stackforge/rally.git

2)  get your branch

Ex:

https://review.openstack.org/#/c/170537/

git review -d 170537

3) Run this such that Change-Id will be updated.

gitdir=$(git rev-parse –git-dir); scp -p -P 29418 @review.openstack.org:hooks/commit-msg ${gitdir}/hooks/

4) make your code changes and amend

git commit -a –amend

5) Check if your Changelog, Change-Id are same as earlier.

6) Send patch

git review -d