[Bug 961142] Re: chef 0.10: package installation: returned 100, expected 0
ha! Thanks Tobias - seems we're on the same page ;-) -- 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
Including this chef recipe as the first one fixes the problem for me. if platform_family?("debian") %w{ DPKG_MAINTSCRIPT_PACKAGE DEBCONF_REDIR DEBIAN_FRONTEND DEBIAN_HAS_FRONTEND DPKG_NO_TSTP UPSTART_JOB DPKG_MAINTSCRIPT_NAME }.each do |v| ENV[v] = nil end end Puppet seems to suffer from the same thing, see http://bugs.debian.org /cgi-bin/bugreport.cgi?bug=439763 ** Bug watch added: Debian Bug tracker #439763 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439763 -- 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
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
Correction: removing man-db is not sufficient, other packages (like ruby-mysql) installed by chef also hang during debconf hooks, because the chef-client started by cloud-init inherit the environment variables. -- 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
Same here. The workaround that worked for me was to let cloud-init remove man-db via a runcmd: runcmd: - apt-get -y purge man-db -- 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
** Changed in: cloud-init Importance: Undecided => Low -- 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
Hi, I had the same problem with cloud-init and chef. Some package installation failed with code 100 (Dpkg sub-process failed). I manage to fix it by installing chef and running chef-client manually in the cloud-config : #cloud-config output: { all: '| tee -a /var/log/cloud-init-output.log' } packages: - chef chef: install_type: packages server_url: http://xxx:4000 validation_name: chef-validator validation_key: | -BEGIN RSA PRIVATE KEY- xxx -END RSA PRIVATE KEY- run_list: - role[front] runcmd: - [chef-client] I also have a problem during postfix package installation that become interactive when installed by chef through cloud-init. I tested with Ubuntu 12.04 and 12.10 on Amazon EC2. -- 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
Hi, sorry to come back to this after so long. Do you think this is actually a cloud-init bug? rather than a bug in chef or in munin? -- 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
[Expired for cloud-init (Ubuntu) because there has been no activity for 60 days.] ** Changed in: cloud-init (Ubuntu) Status: Incomplete => Expired -- 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
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] Re: chef 0.10: package installation: returned 100, expected 0
** Changed in: cloud-init Status: New => Incomplete -- 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
Hi, Sorry for the slow reply to this bug. Could you please try reproducing on 12.04? I suspect it will still fail, but there were changes that might have fixed this issue. It seems strange to me that DEBIAN_HAS_FRONTEND or DEBCONF_REDIR would affect chef. I'd even think that if it is installing packages, it *should* have something like DEBIAN_FRONTEND=noninteractive in its environment. Also, could you turn on cloud-config logging with: output: {all: '| tee -a /var/log/cloud-init-output.log'} and then attach the /var/log/cloud-init-output.log ? ** Changed in: cloud-init (Ubuntu) Status: New => Incomplete -- 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
** Also affects: cloud-init 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/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
** Changed in: cloud-init (Ubuntu) Importance: Undecided => Low -- 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