Cloud -- permission denied writing to /etc/eucalyptus/cloud.d/conf

Bug #613216 reported by C de-Avillez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eucalyptus
New
Undecided
chris grzegorczyk
eucalyptus (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

For whatever reason, Eucalyptus tries, on start, to write a series of .properties files under /etc/eucalyptus/cloud.d/conf. But, since we install the whole /etc/eucalyptus under 'root', and the cloud runs under 'eucalyptus', every single try fails with a 'permission denied'.

This does not seem to be serious (but I really do not know -- yet--), since Eucalyptus still seem to work.

Example messages:

12:57:43 INFO [Bootstrap:main] :1280854663673:Bootstrap:BOOTSTRAPPER_LOAD:SystemCredentialsInit:com.eucalyptus.auth.SystemCredentialProvider:SystemBootstrapper.load.128
12:57:43 INFO [Bootstrap:main] :1280854663931:Bootstrap:BOOTSTRAPPER_LOAD:SystemCredentialsInit:com.eucalyptus.configurable.PropertiesBootstrapper:SystemBootstrapper.load.128
12:57:43 WARN [ConfigurationProperties:main] java.io.FileNotFoundException: /etc/eucalyptus/cloud.d/conf/system.properties (Permission denied)
java.io.FileNotFoundException: /etc/eucalyptus/cloud.d/conf/system.properties (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at java.io.FileWriter.<init>(FileWriter.java:90)
        at com.eucalyptus.configurable.ConfigurationProperties.store(ConfigurationProperties.java:129)
        at com.eucalyptus.configurable.ConfigurationProperties.configure(ConfigurationProperties.java:31)
        at com.eucalyptus.configurable.ConfigurationProperties.doConfiguration(ConfigurationProperties.java:147)
        at com.eucalyptus.configurable.PropertiesBootstrapper.load(PropertiesBootstrapper.java:16)
        at com.eucalyptus.bootstrap.Bootstrap$Stage.load(Bootstrap.java:93)
        at com.eucalyptus.bootstrap.SystemBootstrapper.load(SystemBootstrapper.java:128)
12:57:43 WARN [ConfigurationProperties:main] Failed to save property set: system
java.io.FileNotFoundException: /etc/eucalyptus/cloud.d/conf/system.properties (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at com.eucalyptus.configurable.ConfigurationProperties.configure(ConfigurationProperties.java:73)
        at com.eucalyptus.configurable.ConfigurationProperties.doConfiguration(ConfigurationProperties.java:147)
        at com.eucalyptus.configurable.PropertiesBootstrapper.load(PropertiesBootstrapper.java:16)
        at com.eucalyptus.bootstrap.Bootstrap$Stage.load(Bootstrap.java:93)
        at com.eucalyptus.bootstrap.SystemBootstrapper.load(SystemBootstrapper.java:128)
12:57:43 WARN [ConfigurationProperties:main] java.io.FileNotFoundException: /etc/eucalyptus/cloud.d/conf/www.properties (Permission denied)
java.io.FileNotFoundException: /etc/eucalyptus/cloud.d/conf/www.properties (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at java.io.FileWriter.<init>(FileWriter.java:90)
        at com.eucalyptus.configurable.ConfigurationProperties.store(ConfigurationProperties.java:129)
        at com.eucalyptus.configurable.ConfigurationProperties.configure(ConfigurationProperties.java:31)
        at com.eucalyptus.configurable.ConfigurationProperties.doConfiguration(ConfigurationProperties.java:147)
        at com.eucalyptus.configurable.PropertiesBootstrapper.load(PropertiesBootstrapper.java:16)
        at com.eucalyptus.bootstrap.Bootstrap$Stage.load(Bootstrap.java:93)
        at com.eucalyptus.bootstrap.SystemBootstrapper.load(SystemBootstrapper.java:128)
12:57:43 WARN [ConfigurationProperties:main] Failed to save property set: www
java.io.FileNotFoundException: /etc/eucalyptus/cloud.d/conf/www.properties (Permission denied)

eucalyptus-cloud 2.0~bzr1211-0ubuntu1 eucalyptus install ok installed
eucalyptus-common 2.0~bzr1211-0ubuntu1 eucalyptus install ok installed
eucalyptus-java-common 2.0~bzr1211-0ubuntu1 eucalyptus install ok installed
eucalyptus-walrus 2.0~bzr1211-0ubuntu1 eucalyptus install ok installed
libeucalyptus-commons-ext-java 0.5.0-0ubuntu2 eucalyptus-commons-ext install ok installed
uec-component-listener 2.0~bzr1211-0ubuntu1 eucalyptus install ok installed

Revision history for this message
Thierry Carrez (ttx) wrote :

Right... If those are supposed to be maintained by the user we should provide them in the package. If not, they should probably live in /var/lib/eucalyptus...

Changed in eucalyptus (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

Adding eucalyptus upstream to the bug to get an explanation on what those files are supposed to contain; and answer previous comment question(s).

Changed in eucalyptus:
assignee: nobody → chris grzegorczyk (chris-grze)
Revision history for this message
Andy Grimm (agrimm) wrote :

This issue is now being tracked upstream at http://eucalyptus.atlassian.net/browse/EUCA-2725

Please watch that issue for further updates.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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