Systemd units controlling docker containers are inactive (dead) on startup

Bug #1535308 reported by Oleg S. Gelbukh
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Ivan Suzdal
8.0.x
Fix Released
High
Ivan Suzdal
Mitaka
Fix Released
High
Ivan Suzdal

Bug Description

Steps to reproduce:

1. Install Fuel Admin node with default settings
2. Log in on Fuel Admin node
3. Check status of docker-*.service units via systemctl:

  systemctl status docker-astute.service docker-keystone.service docker-nailgun.service docker-ostf.service docker-rabbitmq.service docker-rsyslog.service docker-cobbler.service docker-mcollective.service docker-nginx.service docker-postgres.service docker-rsync.service docker-storage-setup.service

Expected result:

All services are in 'active (running)' state.

Actual result:

All services are in 'inactive (dead)' state.

There are following error messages in /var/log/messages:

Jan 18 12:55:53 fuel systemd[1]: Reloading.
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/dm-event.socket:10] Unknown lvalue 'RemoveOnStop' in section 'Socket'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-astute.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-rabbitmq.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-rsync.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-postgres.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-nailgun.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-ostf.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-rsyslog.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-nginx.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-mcollective.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-keystone.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/docker-cobbler.service:2] Unknown lvalue 'Name' in section 'Unit'
Jan 18 12:55:53 fuel systemd[1]: [/usr/lib/systemd/system/lvm2-lvmetad.socket:9] Unknown lvalue 'RemoveOnStop' in section 'Socket'

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "438"
  build_id: "438"
  fuel-nailgun_sha: "00114cbcda5d8bca0f0b15f751302c5f7718b898"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "0c1b17537a35d1b56f382fcc48197d0ee0c02d90"
  fuel-nailgun-agent_sha: "92ebd5ade6fab60897761bfa084aefc320bff246"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "1046276a9c639340b2684e3eb301ee61adf905ae"
  fuel-ostf_sha: "4ade03edf9620c3c399dcce60f1a3972f1fc0da8"
  fuel-mirror_sha: "b62f3cce5321fd570c6589bc2684eab994c3f3f2"
  fuelmenu_sha: "85de57080a18fda18e5325f06eaf654b1b931592"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "9f0ba4577915ce1e77f5dc9c639a5ef66ca45896"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "e2e70e18c9aee354022bc2bbc6b8028e944b9fb0"

Changed in fuel:
assignee: nobody → MOS Linux (mos-linux)
tags: added: area-linux
Revision history for this message
Ivan Suzdal (isuzdal) wrote :

We create and run containers with dockerctl and just enable related services but not activate it. So services will be in 'inactive' state until first reboot.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/272666

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
assignee: Ivan Suzdal (isuzdal) → Sergii Golovatiuk (sgolovatiuk)
Changed in fuel:
assignee: Sergii Golovatiuk (sgolovatiuk) → Ivan Suzdal (isuzdal)
tags: added: hit-hcf
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/275251

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/272666
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=082840ab00dcdb43abb6b0abfa7ba92c484b7252
Submitter: Jenkins
Branch: master

commit 082840ab00dcdb43abb6b0abfa7ba92c484b7252
Author: Ivan Suzdal <email address hidden>
Date: Tue Jan 26 20:30:41 2016 +0300

    Ensure docker* services is enabled and running

    Change-Id: I55aa2d68ee56c0c1ca386059519fa7b736ee2f4d
    Closes-Bug: #1535308

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/8.0)

Reviewed: https://review.openstack.org/275251
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=ad4968dcdc145fd4f37fc0cf5534f6b86a7dc2be
Submitter: Jenkins
Branch: stable/8.0

commit ad4968dcdc145fd4f37fc0cf5534f6b86a7dc2be
Author: Ivan Suzdal <email address hidden>
Date: Tue Jan 26 20:30:41 2016 +0300

    Ensure docker* services is enabled and running

    Change-Id: I55aa2d68ee56c0c1ca386059519fa7b736ee2f4d
    Closes-Bug: #1535308

Revision history for this message
Artem Panchenko (apanchenko-8) wrote :

verified

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "525"
  build_id: "525"
  fuel-nailgun_sha: "baec8643ca624e52b37873f2dbd511c135d236d9"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "f2ed8e4503dd9641b70b94381d30e21689b8e5c9"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "e071216cb214e34b4d861478033425ee6a54a3be"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "a365f05b903368225da3fea9aa42afc1d50dc9b4"

tags: added: on-verification
tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.