Project

General

Profile

Task #7271

Story #7259: A DEV2 development environment is needed for upgrade testing

Add apparmor-utils to the dataone-cn-os-core dependency list

Added by Chris Jones almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
d1_cn_buildout
Target version:
Start date:
2015-07-23
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

Our postinst debian script relies on the aa-complain command to allow slapd to read files outside of its sandbox (particularly /etc/dataone/client/*). Ubuntu 12.04 LTS doesn't include the apparmor-utils package in the stock install, so we need to require it. Installation in the DEV2 environment failed because slapd would not start up, due to the following issue in /var/log/dataone/dataone-cn-os-core.install.log:

/var/lib/dpkg/info/dataone-cn-os-core.postinst: line 1464: aa-complain: command not found

This was confirmed by the following apparmor denial in /var/log/syslog:

Jul 23 14:50:24 cn-dev-ucsb-2 kernel: [600625.511199] type=1400 audit(1437688224.309:42): apparmor="DENIED" operation="open" parent=4977 profile="/usr/sbin/slapd" name="/var/log/slapd.log" pid=5970 comm="slapd" requested_mask="wc" denied_mask="wc" fsuid=0 ouid=0
Jul 23 14:50:24 cn-dev-ucsb-2 slapd[5970]: main: TLS init def ctx failed: -1
Jul 23 14:50:24 cn-dev-ucsb-2 slapd[5970]: slapd stopped.

Add the dependency to the debian control file. To continue to install the CCI 1.x stack, we'll need to patch that branch as well (currently 1.5) and include this in the 1.5.3 patch release.


Related issues

Related to Infrastructure - Task #7272: Add apparmor-utils to the dataone-cn-os-core dependency list for version 1.x Closed 2015-07-23

Associated revisions

Revision 16017
Added by Chris Jones almost 9 years ago

Add apparmor-utils to the dependencies for dataone-cn-os-core. refs #7271.

Revision 16017
Added by Chris Jones almost 9 years ago

Add apparmor-utils to the dependencies for dataone-cn-os-core. refs #7271.

History

#1 Updated by Chris Jones almost 9 years ago

  • Related to Task #7272: Add apparmor-utils to the dataone-cn-os-core dependency list for version 1.x added

#2 Updated by Chris Jones almost 9 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100
  • translation missing: en.field_remaining_hours set to 0.0

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)