aboutsummaryrefslogtreecommitdiff
path: root/docker/ironic
AgeCommit message (Collapse)AuthorFilesLines
2017-02-22Fix binary ironic-inspector rootwrap configurationMark Goddard3-1/+5
When built with the binary install type (at least on CentOS), Ironic inspector fails to start and the container remains in a restarting state. The log file shows that it is failing to execute iptables, and analysis found that this was due to an incorrect rootwrap configuration. The RDO ironic inspector RPM expects Ironic inspector to be run as the ironic-inspector user, however Kolla uses the ironic user. This means that neither of the packaged ironic nor ironic-inspector sudoers configuration files works for us. Kolla currently installs a sudoers file pointing to the rootwrap script in the virtualenv of the source install, but of course this only makes sense for source installs, and should not be installed for binary installs. This change adds a second sudoers file that will work for the binary install type, and installs the correct sudoers file for the install type. Change-Id: I8ecd0b658b8df8f38ddf717fa9443d4dc2896984 Closes-Bug: #1624457
2017-02-21Merge "Install shellinabox and socat packages in ironic"Jenkins1-4/+12
2017-02-20Install shellinabox and socat packages in ironicJeffrey Zhang1-4/+12
These packages are needed by ironic console. Change-Id: Ieff5142935fb55cc9860d6cd4f195da095a01449 Closes-Bug: #1666131
2017-02-17Use install-pip macro in most source imagesChao Guo3-3/+18
1. Enable customization of pip packages in source branch of most images 2. All pip packages install uniformly through install-pip macro, user can easily customize his own pip command (For example using a mirror) Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com> Change-Id: If09582039f690fa4136e8f33200d5da15e092da7
2017-02-05Remove include_header and include_footer in all DockerfilesJeffrey Zhang4-4/+0
include_header and include_footer parameter is already removed, remove them in all Dockerfiles. Add missing footer block. Change-Id: I90da03eb9f95a3827361d5f5ede65fde7d6be2b3
2017-01-23Add ipxe packages to Ironic PXE containerDan Prince1-0/+2
Change-Id: I7e3f5f7932d18565e7bc938128297acb8fd6f4f5 Partially-implements: blueprint ironic-pxe-ipxe-support
2017-01-20Fix ironic inspectorMauricio Lima2-1/+12
Co-Authored-By: Jeffrey Zhang <zhang.lei.fly@gmail.com> Closes-Bug: #1650345 Change-Id: Id03619b4e26a0a77c2a39e2de21efd13be0e9200
2017-01-17use static uid/gid in imagesSam Yaple1-4/+4
This centralizes all user and group creation into a single source. This will fix any current and furture uid/gid mismatches (such as with nova-libvirt). In the process, we also unify users between the distros in a standard way. The users in the following containers change from thier defaults: Ubuntu: _chrony user is now chrony Ubuntu: memcache user is now memcached All: qemu user is used for ownership and socket permissions All uid and gid numbers are customizable via kolla-build.conf Co-Authored-By: Kris Lindgren <klindgren@godaddy.com> Change-Id: I120f26ab0683dc87d69727c3df8d4707e52a4543 Partially-Implements: blueprint static-uid-gid
2017-01-11Add Apache packages to ironic-pxe containerDan Prince1-2/+6
Some projects that use Kolla docker containers (TripleO) run Ironic pxe under httpd. This patch adds the httpd package so that it exists in the container and can optionally by used via Docker entrypoints. As many of these projects do not require the use of Apache (it is opt-in) at this point not all deployment frameworks support the use of it so the existing configuration defaults have been left as-is for now. Change-Id: I4c3e44db6a1ffa7238006c27038ac0a67c8aa725 Partial-Blueprint: apache-packages-for-apis
2016-11-20Install mkfs.vfat tool in ironic-conductor imageJeffrey Zhang1-0/+4
Change-Id: I969a769cf349b130035b9136e570849782e9247a Closes-Bug: #1642578
2016-11-03Remove Fedora supportChristian Berendt5-6/+6
Closes-bug: #1616387 Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
2016-10-20Install the packages needed by different ironic driversJeffrey Zhang1-2/+22
Change-Id: If3f30f58eae31753d34e94d030d1f37d9a1e6c47 Closes-Bug: #1635128
2016-10-12copy ldlinux.c32 to /tftpboot in ironic_pxeWaldemar Znoinski1-1/+1
Change-Id: Ie42f75d0779b8e2bd835e9cdc165e73751ce5172 Closes-bug: #1632840
2016-10-04Merge "install pxelinux for ironic_pxe"Jenkins2-2/+5
2016-10-04Add hexdump package for ironic-conductor containerJeffrey Zhang1-0/+4
On RedHat family distro, util-linux provides the hexdump. On Debian family distro, bsdmainutils provides the hexdump. Change-Id: If762f570639782ca477ae4697f354d88c992613b Closes-Bug: #1627755
2016-10-03install pxelinux for ironic_pxeWaldemar Znoinski2-2/+5
pxelinux.0 and chain.c32 files are provided by two separate packages on xenial compared to 1 on trusty. This change adds the required package to be installed and new paths the files reside on xenial. Change-Id: I48a3622f7257f4cbf994258f82ba91947aae3be4 Closes-bug: #1629337
2016-10-03Fix ironic failedJeffrey Zhang6-12/+47
* Mount system folder in ironic-conductor * Add package need in ironic-conductor * Fix the log path issue * Add ironic sudoer in ironic-base * Fix credential issue * Do not start nova-compute when enable ironic Closes-Bug: #1629334 Change-Id: If9d478c6513de37465403d458a88cf0da7ebd8a6
2016-09-25install iptables in ironic-inspector containerWaldemar Znoinski1-1/+10
Change-Id: I5c153b367ef21eb76bc3fbe8bd724c71aa251f3c Closes-bug: #1626539
2016-09-25fix ironic-inspector setupWaldemar Znoinski2-2/+13
* add ironic-inspector(-archive) source to docker image * pip install from above source code * move in-container config files to /etc/ironic-inspector * add sudoers file to allow ironic-rootwrap * copy rootwrap conf and filters from source repo Change-Id: Ie3cce19810b9940d06bb636b28015160fea6ddfb Closes-bug: #1624457 Closes-bug: #1624833 Closes-bug: #1624845
2016-09-19Fix ironic Dockerfilecaowei4-1/+5
1.Change "ironic_base" to "ironic_inspector" in ironic-inspector Dockerfile 2.add {% block footer %}{% endblock %} TrivialFix Closes-Bug: #1625131 Change-Id: Ibd02676e91a9b00cb1a46e7d00eaa3ab2c6c6412
2016-09-16install ironic-inspector during image buildWaldemar Znoinski1-0/+5
Add installation of ironic-inspector package on binary ubuntu or via pip on any source type of installations. Change-Id: I5946369b6424c32e0cbf00a6590d41eb85b1de18 Closes-bug: #1565936
2016-09-13Add header blocks to all DockerfilesPaul Bourke5-0/+10
Change needed to add header blocks to all Dockerfiles, similar to the base. Use case is to easily run something before packages are installed, e.g. to COPY a local rpm in that can be added to the package list. Change-Id: I1bbfdf0b762da0a392aa8bf47781315b45377bee Closes-Bug: 1618969
2016-08-25Customizations for IronicShaun Smekel5-60/+57
This patchset contains customization of Dockerfile of Ironic containers. Change-Id: If6ffb741111127886f754ddebd17059174387fc8 Partially-implements: blueprint third-party-plugin-support
2016-05-26Update ubuntu dockerfiles for formattingSwapnil Kulkarni (coolsvap)4-5/+5
Change-Id: If4be00b937e14ec93443dcb7249cf17099d57cbe Closes-Bug: #1569417
2016-05-02Remove unecessary blank linesMauricio Lima1-1/+0
TrivialFix Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-04-12Update Ironic dockerfile for formattingSwapnil Kulkarni (coolsvap)1-1/+2
Change-Id: I73fd2030f353f7daa35e71b62491cdf0b3fcf5cf Partial-Bug:#1569417
2016-03-11Add missing files in ironic containersAndrey Shestakov2-3/+7
Added missing package for qemu-img in centos container Added pxelinux.0 in ironic-pxe in centos container TrivialFix Change-Id: I706284824f915caf974b1247520c3e4025c47f57
2016-02-29Move ironic-discoverd to ironic-inspectorAllen Gao2-6/+5
Closes-Bug: #1551052 Change-Id: Ic226287bbf1f1e8d5cc2e1d80ce2975448b1f95c
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