aboutsummaryrefslogtreecommitdiff
path: root/docker/ironic
AgeCommit message (Collapse)AuthorFilesLines
2016-02-06Correct issue with virtualenv rootwrapSamYaple1-1/+2
Because we use rootwrap in a venv we need to update the exec_dirs. Without doing this *some* commands will break for various reasons that I won't get into in this review in detail. But this is required for neutron-l3-agent in a container + drop-root. Change-Id: I1a09f7188fdd501b7ce251d9f2fb0e5b10222142 Partially-Implements: blueprint drop-root
2016-01-26Add bootstrap task for ironic-pxeAndrey Shestakov2-7/+18
PXE files should be copied after volume mount to avoid overwrite. Change-Id: I023cc316e6873abd658478dfa05be839e44a80c7 Closes-bug: #1538164
2016-01-26Fix ironic-pxe map-file locationAndrey Shestakov1-1/+1
map-file should not be overwriten by volume TrivialFix Change-Id: I57bf963fd4af8c010fda0c4504e83dc33f6e9162
2016-01-20Ironic ubuntu binary containerAndrey Shestakov3-2/+21
Change-Id: I94ef03c11657d36261f3ddc63056422f84ec2c6a Partially-Implements: blueprint binary-ubuntu
2016-01-16ironic-conductor: install ipmitool for source deploy in centosWanlong Gao1-0/+6
Change-Id: Ib6b095341c8d63b365d3575478b4dafa69720b63 Closes-Bug: #1534900
2016-01-15Remove old config-external.shWanlong Gao1-11/+0
TrivialFix Change-Id: Ib1923d8782699904cbc6a71d2f326d9c207d0005
2016-01-05Cleanup dependencies for ironic-baseMartin André1-6/+0
Rely on packagers for managing dependencies. openstack-ironic-common now pulls the required packages: https://github.com/openstack-packages/ironic/blob/rpm-master/openstack-ironic.spec TrivialFix Change-Id: Ib1d18c4e50a8786c29bf88d9b661905eb8b657c5
2015-12-29Merge "Create ironic-pxe container with ironic-base"Jenkins1-1/+2
2015-12-28Create ironic-pxe container with ironic-baseAndrey Shestakov1-1/+2
/tftpboot directory should be writeable by ironic-conductor. TrivialFix Change-Id: I870a786d41a6feb8e0786b6e86a5caf1f9ceb079
2015-12-27Fix pip install settingsSamYaple2-2/+2
There were some inconsistencies with pip install instructions thoughout Kolla. We fix those here. Additionally, we fix the virtualenv to properly use the site-packages on the host if a library is not available in the venv. Change-Id: Ib84d48e8826bb96060338b3fa0782620c98794a8 Related-Bug: #1524684 Closes-Bug: #1529434
2015-12-22Remove user 'ironic' from ironic-pxeAndrey Shestakov1-2/+0
TFTP server should runs as root user Change-Id: I80064edf991d5f466a5711f1ab80ec8df43b785b Closes-bug: 1528341
2015-11-27Source installation in virtualenvMichal Rostecki2-2/+2
Use virtualenv for installation of OpenStack projects and dependencies to avoid conflicts with Python libraries installed by non-OpenStack binary packages. Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c Implements: blueprint virtualenv
2015-11-26Add required packages to ironic-conductor containerAndrey Shestakov1-0/+9
ironic-conductor service requires qemu-img and ipmitool utils. TrivialFix Change-Id: I5489087031c9b209ead862a531ce4544e20265ee
2015-11-24Drop root for ironicSwapnil Kulkarni (coolsvap)6-1/+11
Updates to ensure commands run in the ironic containers are done as the 'ironic' user rather than root. Change-Id: I491041ce02fb5dd3eb60c6ae9169f26d8a8919dd Partially-Implements: blueprint drop-root
2015-11-24Added ironic-common to ironic base containerSwapnil Kulkarni (coolsvap)1-0/+1
Change-Id: I5e167fc2e1363eb407016a059acc868e7cf73563 Closes-Bug:#1519409
2015-11-23Remove hardcoded MAINTAINER in DockerfilesSwapnil Kulkarni (coolsvap)5-5/+5
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
2015-11-20Fix /etc files location for ironic-base building from sourcesAndrey Shestakov1-1/+1
Ironic config files should be palced to /etc/ironic/* Closes-Bug: #1518433 Change-Id: Ic82dbb9a28ed3adb6bfca2d0f715da3a7bbc4698
2015-11-04Adjust package name for Ubuntu IronicSam Yaple1-3/+3
We target 14.04 which has the package name 'syslinux' >14.04 has the package name 'pxelinux' TrivialFix Backport: Liberty Change-Id: Id0f4f503257d62d9ce45be5eb8f4faa766244d0a
2015-10-21Ironic binary shouldnt use upper-constraintsSam Yaple1-1/+1
TrivialFix Related-Id: I9fbfa7ca442063db52c8b14586176ab994d2cf46 Change-Id: Ic1a7f311a323a3fed296ef2b76cd2dbde96053e2
2015-10-15Use openstack/requirements for ironicPaul Bourke2-2/+2
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context. Change-Id: I9fbfa7ca442063db52c8b14586176ab994d2cf46 Partial-Bug: #150530
2015-10-13Fix issue with su and bad kernelsSam Yaple1-1/+1
Long story short, some kernels before 3.15 had an issue with using su in a container when the network namespace was --net=host. The gate has a 3.10 and a 3.13 kernel and has a problem with this. This changes everything to use sudo backport: liberty Partially-Implements: blueprint functional-testing-gate Change-Id: I4d79ccaa1cddffcc8393f64e7e1be2538efe33e5
2015-10-07Fix up ironic Dockerfiles to buildJeff Peeler2-8/+2
The dockerfiles for each of these containers were hacked to force install the most recent version of the package, even though the newer version had a lower version number. Delorean has fixed the issue by bumping the epoch, so the hack is no longer required. backport: liberty Change-Id: I8d9c071d84e53280d3cadfceb9034bb96f64f3a3 Closes-bug: #1503785
2015-10-06Bring Kolla inline with FHSSam Yaple1-1/+1
This brings Kolla images inline with FHS and should make finding locations of things more consistent and reliable with the linux world at large. Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8 Closes-Bug: #1485742
2015-10-06Common start.shSam Yaple8-37/+2
The majority of the start.sh code is identical. This removes that duplicate code while still maintaining the ability to call code in a specific container. The start.sh is moved into /usr/local/bin/kolla_start in the container The extend_start.sh script is called by the kolla_start script at the location /usr/local/bin/kolla_extend_start . It always exists because we create a noop kolla_extend_start in the base directory. We override it with extend_start.sh in a specific image should we need to. Of note, the neutron-agents container is exempt from this new structure due to it being a fat container. Additionally, we fix the inconsistent permissions throughout. 644 for repo files and the scripts are set to 755 via a Docker RUN command to ensure someones local perm change won't break upstream containers. Change-Id: I7da8d19965463ad30ee522a71183e3f092e0d6ad Closes-Bug: #1501295
2015-10-04PXE for Ironic for ubuntuSam Yaple3-27/+20
This makes Ironic build properly from source. Change-Id: Ic61cd945760843aae1f0a01738bca3b818fd2f69 Closes-Bug: #1500577
2015-09-28Add Ansible support for IronicJeff Peeler11-47/+71
Configuration based off upstream documentation here: http://docs.openstack.org/developer/ironic/deploy/install-guide.html A few notes: -ironic-api is not configured to use mod_wsgi -several places it's noted that discoverd is going away and needs to be replaced with ironic-inspector - (sqlite connection should be changed too) -currently enabling ironic reconfigures nova compute (driver and scheduler) as well as changes neutron network settings -a nice enhancement would be to configure the web console Required post-deployment configuration: Create the flat network to launch the instances: neutron net-create --tenant-id $TENANT_ID sharednet1 --shared \ --provider:network_type flat --provider:physical_network physnet1 neutron subnet-create sharednet1 $NETWORK_CIDR --name $SUBNET_NAME \ --ip-version=4 --gateway=$GATEWAY_IP --allocation-pool \ start=$START_IP,end=$END_IP --enable-dhcp And then the above ID is used to set cleaning_network_uuid in the neutron section of ironic.conf. Change-Id: I572e7ff1f23c4e57a2c50817cafe9269fd9950dd Implements: blueprint ironic-container
2015-09-28Implement a install_type and install_metatypeSteven Dake4-4/+4
This prepares for the RHEL OSP implementation by making the build tool convert all binary-* into an install_type of binary and * into an install_metatype variable substitution inside the Dockerfiles. Further binary-* is substituted as install_name to enable proper building only. Change-Id: Ib681b29176eb79a3cab12ec824313fdecb6e7a5f Partially-Implements: blueprint rhel-based-image-support
2015-09-27Remove all fail sections for UbuntuSam Yaple1-7/+2
Ubuntu binary is not supported and may never be. Installing from cloud-archive packaging is only for the current stable distros, Ubuntu does not have a Delorean type repo. We place a fail message in the base image to catch this and remove the messages throughout the project. An additional fail message is placed to catch all other things. Change-Id: Id2953f503ebd42226f6a08e75979ae56511c40f7 Implements: blueprint install-from-ubuntu
2015-09-04Add 'rhel' for RPM distrosSteven Dake4-4/+4
Add 'rhel' to list for RPM based distros. Also sort the distro list for rpm packages for affected lines. Change-Id: Ied4cb3e9763d6c6359f314d16185383ac3e006ed Partially-Implements: blueprint rhel-based-image-support
2015-09-04Merge "Allow arbitrary source archive name to be imported into Dockerfile"Jenkins1-2/+2
2015-09-03Allow arbitrary source archive name to be imported into DockerfileVladislav Belogrudov1-2/+2
Currently we cannot import source archives with names different than expected by hardcoded line in Dockerfiles. This worked well for Openstack services' tarballs where we expected SERVICE-* root folder after extraction or kanaka-noVNC for nova-novncproxy docker. The latter fails if one tries to clone or get tarball under other names. This fix allows any archive (tar,tgz,zip) or repo name to be imported into dockerfile. Change-Id: I869a6a19afaf0e93925572746c22b7589b6600c9 Closes-Bug: #1491415
2015-09-03Create openstack-base containerSam Yaple1-1/+1
This creates and moves the dependencies for Ubuntu into a common openstack-base container. This commit shows dramatically smaller sizes for all non-openstack containers. The Openstack container remain the same size. Change-Id: I2f46420d4b9edcfddda374caddcce906fc708f6c Partially-Implements: blueprint openstack-common-container
2015-08-31Merge "Add Ansible support for Heat"Jenkins1-2/+0
2015-08-31Remove dest_filename from build.iniSam Yaple1-1/+1
We can, and should, figure out the filename dynamically rather than hardcode that value in build.ini since it is not actually a configurable paramater. Change-Id: I496d6555e9fa356ab09e62063fd707f43ed08121 Closes-Bug: #1490386
2015-08-29Add Ansible support for HeatSteven Dake1-2/+0
This changes bootstrapping of the Heat container to bootstrap the Heat container with a heat domain user. This requires some work from bootstrap.yml to pass in several environment variables needed by the heat domain setup script. Co-Authored-By: Sam Yaple <sam@yaple.net> Change-Id: Iab05983754fa514835cb5ff54d775faa18773110 Partially-implements: blueprint ansible-heat
2015-08-28Move docker_templates to docker dirSam Yaple10-0/+153
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir