31 Commits

Author SHA1 Message Date
zhuzeyu
b73f06684f Modify the permission of directory
Considering the safety, 644 is enough
other user is not necessary to having write permission.
adding 'su' in where needs writing permissions is a good practice
this operation is safer.

Change-Id: I45d0c6e5ef7338f93db21cf4ef58b4a4fd831210
2017-03-30 16:43:42 +08:00
Jenkins
9d0daa015a Merge "Enable sanity checks from kolla-ansible" 2017-03-09 17:31:51 +00:00
Paul Bourke
5418ada148 Enable sanity checks from kolla-ansible
Add a new subcommand 'check' to kolla-ansible, used to run the
smoke/sanity checks.

Add stub files to all services that don't currently have checks.

Change-Id: I9f661c5fc51fd5b9b266f23f6c524884613dee48
Partially-implements: blueprint sanity-check-container
2017-03-09 10:37:06 +00:00
caoyuan
c39e896e7c Update the file format for baremetal
Change-Id: I1e90b0aeebaa0db0b91370eccfc0b707d9668752
2017-03-02 05:46:18 +00:00
Eduardo Gonzalez
e50d5cbf4f Remove hardcode /etc/kolla path
Leaved vagrant and documentation harcoded
/etc/kolla paths due the nature of the files.

Change-Id: Id316980d3d4e8f3de98672d7ed258e0652ed7213
Closes-Bug: #1659771
2017-01-30 16:13:12 +00:00
zhubingbing
5cf169f3b3 Remove precheck.yml in baremetal
i think the baremetal project need not precheck.yml

Change-Id: I5805dc14024f865179d7e7ea4c1634cdf193f4cd
2017-01-21 06:07:11 +00:00
Jenkins
d91ed21fec Merge "Optimize the code" 2016-12-13 03:58:34 +00:00
Ethan Lynn
282afeafa3 Become root when executing task "Set firewall default policy"
Add missing "become: True"

Change-Id: I22b9a44fa3e5d147f487e2e24f3f0a65484951ff
Closes-Bug: #1648370
2016-12-08 17:31:15 +08:00
zhuzeyu
49c0ca3a9c Optimize the code
make bool filter more consistence between all roles.

TrivialFix

Change-Id: Icd51749039b1448e09a4713da093b16f965f9ed8
2016-12-07 15:29:07 +08:00
Yongfeng Du
62e7f95cdc Fix /etc/kolla permission
Add preceding 0 to the permission, otherwise it will be regard as decimal.

TrivialFix

Change-Id: I762b38a71143df9f378f74e534643534f2bc68b8
2016-11-17 13:52:55 +08:00
Jenkins
b177f04fcc Merge "disable firewall in bootstrap-server" 2016-11-08 11:57:33 +00:00
prameswar
d7ed014277 disable firewall in bootstrap-server
Closes-Bug: #1638762

Change-Id: I23565f72166088444a49269ff9e406a3ab7a40d4
2016-11-06 07:29:15 +00:00
Michal (inc0) Jastrzebski
34c7d15f2e Remove hostname from 127.0.0.1
We need this hostname to resolve to api_interface.

Change-Id: Ie66c1abc2d5a16c56cb5b83e48787efd5bf54fc3
Closes-Bug: #1634910
2016-11-04 15:28:32 +00:00
Jenkins
4f6b6fc808 Merge "Correct the path of /etc/hosts" 2016-11-04 14:19:05 +00:00
Jenkins
7a07ce0862 Merge "Use become: True when updating /etc/hosts" 2016-11-03 14:15:16 +00:00
Jeffrey Zhang
fa45801946 Move precheck into its own role
* Merge prechecks.yml and site.yml playbook
* Create empty precheck.yml into all roles.

Change-Id: I8a138558a26c0a2a66c5fd48ed37be657c99c1dd
Implements: blueprint condition-pre-check
2016-11-03 14:48:58 +08:00
Lubosz "diltram" Kosnik
90627ef2a2 Use become: True when updating /etc/hosts
Add become: True to update /etc/hosts in pre-install baremetal configuration

TrivialBug
Change-Id: I21e8125272d6b980662779ad55899f04cb6b6a50
2016-10-27 15:10:55 -05:00
caoyuan
df54e88132 Update the task's name
TrivialFix

Change-Id: I2cc1441a5fcf9c09db01d17c840bb784f4db1c0e
2016-10-27 16:17:42 +00:00
caoyuan
f6584f634e Correct the path of /etc/hosts
TrivialFix

Change-Id: Ia4ffc05012102d2f3afacdd92250949ae094d10c
2016-10-26 22:23:35 +08:00
zeyu Zhu
409b635b45 Add a judgement condition in file pre-install.yml
keep consistent with above

TrivialFix

Change-Id: Ia4b531eae1eb31b047b3486861c30c93abb8132d
2016-10-24 17:29:51 +08:00
Mauricio Lima
18785f416c Remove unneeded blank lines
TrivialFix

Change-Id: I778d0a55adf1302c7a6f0702fec3a381d851f3df
2016-10-06 12:42:27 -03:00
caowei
2d97299051 Delete extra spaces in baremetal install.yml
TrivialFix

Change-Id: I2004b234520aa16ce2a76d8996cfb9d1a8174439
2016-09-20 10:31:40 +08:00
Jenkins
bac19675ed Merge "Generate full /etc/hosts on every node" 2016-09-15 14:40:52 +00:00
Michal (inc0) Jastrzebski
01d2e2e331 Generate full /etc/hosts on every node
Since compute nodes needs to resolve each other, and controller nodes
needs to resolve each other, let everyone resolve everyone.

Change-Id: I1ee117bdb2d71d48a064c4d317b53a1500bdd753
Closes-Bug: #1623669
2016-09-15 03:36:03 +00:00
Christian Berendt
419e560d2b Check if libvirtd apparmor profiles exists before removal
TrivialFix

Change-Id: Ifa6432f24d4eaa354b977b71a6dbcd5f5080e1b0
2016-09-12 19:13:29 +02:00
Duong Ha-Quang
a89c9ff396 Init group owner of /etc/kolla to kolla
TrivialFix
Closes-Bug: #1620213

Change-Id: I2446aebafb37add2172d6858be47a6983d461d46
2016-09-05 08:09:06 +00:00
Jenkins
ac0ba62bdf Merge "Add ansible raw task note, add apt-get update" 2016-09-01 11:41:31 +00:00
Sean Mooney
7f1084808b replace baremetal_nic with api_interface
- The baremetal_nic variable was used as part of
  kolla host playbook when generating the /etc/hosts file.
  Populating the /etc/hosts is done to ensure that rabbitmq
  can reach the other nodes in the rabbitmq cluster by hostname.
- Before this change the baremetal_nic variable was used to
  determin which interface to read when mapping the hostname to
  an ip address.
- This change removes baremetal_nic and uses api_interface
  instead as the hostname used by rabbitmq should always map to the
  api_interface ip.

TrivialFix
Closes-Bug: #1618381

Change-Id: I65fe3aad58ac34b001a1f4a38641addc9fa5a1d4
2016-08-31 19:39:59 +00:00
Duong Ha-Quang
143f1c2d9a Add ansible raw task note, add apt-get update
Add note about raw install
Add apt-get update before install python

TrivialFix
Closes-Bug: #1618297

Change-Id: I08372dcfe71dff8c0a50a421788309b642e2a521
2016-08-31 15:11:52 +07:00
Michal (inc0) Jastrzebski
7d0a2aa9f0 Limit hostfile generation to control nodes
With current implementation generation of hostfile is N^2, let's at
least limit this to controller nodes. Currently only RabbitMQ requires
hostnames, and these lands on control.

TrivialFix

Change-Id: I15f8d98386ede8bbc89f66923f21547efe20ff37
2016-08-30 16:41:16 +00:00
Sean Mooney
3e8f9986d1 add baremetal role to install kolla deps.
Change-Id: Ie70db1b18a73528b1194e4fbcf53d09fed20f4a0
Implements: blueprint kolla-host
2016-08-10 16:03:08 +00:00