[Bug 961142] Re: chef 0.10: package installation: returned 100, expected 0

2013-06-21 Thread Tobias Wilken
Hey,

I solved the process for us, by creating a chef recipe, with just:

`
ENV['DEBCONF_REDIR'] = 
ENV['DEBIAN_HAS_FRONTEND'] = 
`

This is executed as first recipe and we had no more problems.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/961142

Title:
  chef 0.10: package installation: returned 100, expected 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/961142/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 961142] Re: chef 0.10: package installation: returned 100, expected 0

2012-06-03 Thread Tobias Wilken
Hey,

I tried it with 12.04 (AWS ami-1de8d369),  same error as before, as you
suspected. I appended the cloud-init-output.log, but I couldn't get more
information out of this.

I also logged the output of `env` inside a chef recipe:
Started via cloud init:
UPSTART_INSTANCE=
SHLVL=1
INSTANCE=
DPKG_MAINTSCRIPT_ARCH=all
UPSTART_JOB=cloud-config
DPKG_RUNNING_VERSION=1.16.1.2
DPKG_MAINTSCRIPT_NAME=postinst
_=/usr/sbin/invoke-rc.d
TERM=linux
PERL_DL_NONLAZY=1
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DPKG_MAINTSCRIPT_PACKAGE=chef
DEBCONF_REDIR=1
DEBIAN_FRONTEND=noninteractive
DEBIAN_HAS_FRONTEND=1
UPSTART_EVENTS=filesystem started
DPKG_NO_TSTP=yes
PWD=/
DPKG_ADMINDIR=/var/lib/dpkg
JOB=rsyslog

Started as chef client from the command line client:
LESSOPEN=| /usr/bin/lesspipe %s
SUDO_GID=1000
MAIL=/var/mail/root
USER=root
SHLVL=1
HOME=/root
SUDO_UID=1000
LOGNAME=root
_=/usr/bin/chef-client
TERM=xterm
USERNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_COMMAND=/bin/su
SHELL=/bin/bash
SUDO_USER=ubuntu
LESSCLOSE=/usr/bin/lesspipe %s %s
PWD=/

The DEBIAN_ Variables seems to confuse the call of mandb, when a package is 
installed.
I hope this helps


** Attachment added: cloud-init-output.log
   
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/961142/+attachment/3173920/+files/cloud-init-output.log

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/961142

Title:
  chef 0.10: package installation: returned 100, expected 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/961142/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 961142] [NEW] chef 0.10: package installation: returned 100, expected 0

2012-03-21 Thread Tobias Wilken
Public bug reported:

I'm trying to prepare nodes with cloud-init and chef 0.10 on Ubuntu
11.10 (Oneiric Ocelot) (amazon) instances.

On simple package installation via chef recipe, e.g:
package munin-node

I'm running into a apt-get error:
apt-get -q -y install munin-node=1.4.5-3ubuntu4 returned 100, expected 0 error.

Which can be traced back to 'Bad file descriptor' error, from man-db.
Same installation works fine without problems, when running chef without 
cloud-init.

I could trace this error back to some env variables, which are still set while 
chef starts to run it's scripts.
Unsetting these variables in the chef recipe solves the problem:
ENV['DEBCONF_REDIR'] = 
ENV['DEBIAN_HAS_FRONTEND'] = 
package munin-node

Does these variables still needs to be set, while executing the chef
client?


My cloud-config:

apt_update: True
apt_upgrade: True
byobu_by_default: disable
manage_etc_hosts: True
hostname: hostname
disable_root: true
timezone: UTC

packages:
 - ntp

apt_sources:
 - source: deb http://apt.opscode.com/ oneiric-0.10 main
   filename: opscode.list
   key: |
the key

chef:
install_type: packages
server_url: https://api.opscode.com/organizations/myorganization;
node_name: node name
environment: dev
validation_name: cloudcontrol-validator
validation_cert: |
the cert

run_list:
 - role[arole]

** Affects: cloud-init (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/961142

Title:
  chef 0.10: package installation: returned 100, expected 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/961142/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs