[flashlight] Problems with register_domains.py on servers (missing pip)
I saw this on a few servers when pushing the latest flashlight server configuration:
----------
ID: salt-nodeps
Function: pip.installed
Name: salt==2014.1.10
Result: False
Comment: State pip.installed found in sls salt_minion is unavailable
Changes:
The above error was on fl-singapore-001-19
This document may be of use - http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pip_state.html
Here's the full log:
Executing run on ['fl-singapore-001-19']
fl-singapore-001-19:
----------
ID: apt-upgrade
Function: cmd.run
Name: export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y -o DPkg::Options::=--force-confold && touch /root/apt_updated
Result: True
Comment: unless execution succeeded
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python-markupsafe
Result: True
Comment: Package python-markupsafe is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: debconf-utils
Result: True
Comment: Package debconf-utils is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python-support
Result: True
Comment: Package python-support is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python
Result: True
Comment: Package python is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python-pkg-resources
Result: True
Comment: Package python-pkg-resources is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python-pip
Result: True
Comment: Package python-pip is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python-m2crypto
Result: True
Comment: Package python-m2crypto is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: dctrl-tools
Result: True
Comment: Package dctrl-tools is already installed
Changes:
----------
ID: pip-prereqs
Function: pkg.installed
Name: python-crypto
Result: True
Comment: Package python-crypto is already installed
Changes:
----------
ID: setuptools
Function: cmd.run
Name: pip install --upgrade setuptools
Result: True
Comment: Command "pip install --upgrade setuptools" run
Changes:
----------
pid:
22919
retcode:
0
stderr:
stdout:
Collecting setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-9.0.1-py2.py3-none-any.whl#md5=fba66e93e17d5a8c2dc9a8f0beddc5a9
Downloading setuptools-9.0.1-py2.py3-none-any.whl (552kB)
Installing collected packages: setuptools
Found existing installation: setuptools 9.0
Uninstalling setuptools-9.0:
Successfully uninstalled setuptools-9.0
Successfully installed setuptools-9.0.1
----------
ID: pip
Function: cmd.run
Name: pip install --upgrade pip && hash -r
Result: True
Comment: Command "pip install --upgrade pip && hash -r" run
Changes:
----------
pid:
22927
retcode:
0
stderr:
stdout:
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
----------
ID: /etc/security/limits.conf
Function: file.append
Result: True
Comment: Appended 0 lines
Changes:
----------
ID: aranhoide
Function: user.present
Result: True
Comment: User aranhoide is present and up to date
Changes:
----------
ID: /home/aranhoide
Function: file.directory
Result: True
Comment: Directory /home/aranhoide is in the correct state
Changes:
----------
ID: /home/aranhoide/.ssh
Function: file.directory
Result: True
Comment: Directory /home/aranhoide/.ssh is in the correct state
Changes:
----------
ID: lantern
Function: user.present
Result: True
Comment: User lantern is present and up to date
Changes:
----------
ID: /home/lantern
Function: file.directory
Result: True
Comment: Directory /home/lantern is in the correct state
Changes:
----------
ID: /home/lantern/.ssh
Function: file.directory
Result: True
Comment: Directory /home/lantern/.ssh is in the correct state
Changes:
----------
ID: myles
Function: user.present
Result: True
Comment: User myles is present and up to date
Changes:
----------
ID: /home/myles
Function: file.directory
Result: True
Comment: Directory /home/myles is in the correct state
Changes:
----------
ID: /home/myles/.ssh
Function: file.directory
Result: True
Comment: Directory /home/myles/.ssh is in the correct state
Changes:
----------
ID: ox.to.a.cart
Function: user.present
Result: True
Comment: User ox.to.a.cart is present and up to date
Changes:
----------
ID: /home/ox.to.a.cart
Function: file.directory
Result: True
Comment: Directory /home/ox.to.a.cart is in the correct state
Changes:
----------
ID: /home/ox.to.a.cart/.ssh
Function: file.directory
Result: True
Comment: Directory /home/ox.to.a.cart/.ssh is in the correct state
Changes:
----------
ID: pants
Function: user.present
Result: True
Comment: User pants is present and up to date
Changes:
----------
ID: /home/pants
Function: file.directory
Result: True
Comment: Directory /home/pants is in the correct state
Changes:
----------
ID: /home/pants/.ssh
Function: file.directory
Result: True
Comment: Directory /home/pants/.ssh is in the correct state
Changes:
----------
ID: aranhoide_aranhoide_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key aranhoide_aranhoide_ssh is already present for user aranhoide
Changes:
----------
ID: aranhoide_lantern_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key aranhoide_lantern_ssh is already present for user lantern
Changes:
----------
ID: myles_lantern_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key myles_lantern_ssh is already present for user lantern
Changes:
----------
ID: myles_myles_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key myles_myles_ssh is already present for user myles
Changes:
----------
ID: ox.to.a.cart_lantern_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key ox.to.a.cart_lantern_ssh is already present for user lantern
Changes:
----------
ID: ox.to.a.cart_ox.to.a.cart_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key ox.to.a.cart_ox.to.a.cart_ssh is already present for user ox.to.a.cart
Changes:
----------
ID: pants_lantern_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key pants_lantern_ssh is already present for user lantern
Changes:
----------
ID: pants_pants_ssh
Function: ssh_auth.present
Result: True
Comment: The authorized host key pants_pants_ssh is already present for user pants
Changes:
----------
ID: ufw
Function: pkg.installed
Result: True
Comment: Package ufw is already installed
Changes:
----------
ID: ufw
Function: service.running
Result: True
Comment: Service ufw is already enabled, and is in the desired state
Changes:
----------
ID: ufw allow openssh && echo y | ufw enable
Function: cmd.run
Result: True
Comment: Command "ufw allow openssh && echo y | ufw enable" run
Changes:
----------
pid:
22964
retcode:
0
stderr:
stdout:
Skipping adding existing rule
Skipping adding existing rule (v6)
Firewall is active and enabled on system startup
----------
ID: fail2ban
Function: pkg.removed
Result: True
Comment: None of the targeted packages are installed
Changes:
----------
ID: base-packages
Function: pkg.installed
Name: python-software-properties
Result: True
Comment: Package python-software-properties is already installed
Changes:
----------
ID: base-packages
Function: pkg.installed
Name: git
Result: True
Comment: Package git is already installed
Changes:
----------
ID: /etc/init.d/salt-minion
Function: file.managed
Result: True
Comment: File /etc/init.d/salt-minion is in the correct state
Changes:
----------
ID: salt-minion
Function: pkg.removed
Result: True
Comment: None of the targeted packages are installed
Changes:
----------
ID: remove-old-salt-install-dir
Function: cmd.run
Name: rm -rf /tmp/pip-build-root/salt
Result: True
Comment: Command "rm -rf /tmp/pip-build-root/salt" run
Changes:
----------
pid:
23069
retcode:
0
stderr:
stdout:
----------
ID: salt-nodeps
Function: pip.installed
Name: salt==2014.1.10
Result: False
Comment: State pip.installed found in sls salt_minion is unavailable
Changes:
----------
ID: salt-prereqs
Function: pkg.installed
Name: python-libcloud
Result: True
Comment: Package python-libcloud is already installed
Changes:
----------
ID: salt-prereqs
Function: pkg.installed
Name: libssl-dev
Result: True
Comment: Package libssl-dev is already installed
Changes:
----------
ID: salt-prereqs
Function: pkg.installed
Name: swig
Result: True
Comment: Package swig is already installed
Changes:
----------
ID: salt-prereqs
Function: pkg.installed
Name: python-dev
Result: True
Comment: Package python-dev is already installed
Changes:
----------
ID: salt-prereqs
Function: pkg.installed
Name: libzmq3-dev
Result: True
Comment: Package libzmq3-dev is already installed
Changes:
----------
ID: salt
Function: pip.installed
Name: salt==2014.1.10
Result: False
Comment: One or more requisite failed
Changes:
----------
ID: salt-minion
Function: service.running
Result: False
Comment: One or more requisite failed
Changes:
----------
ID: /etc/sudoers.d/90-myles
Function: file.managed
Result: True
Comment: File /etc/sudoers.d/90-myles is in the correct state
Changes:
----------
ID: /etc/sudoers.d/90-pants
Function: file.managed
Result: True
Comment: File /etc/sudoers.d/90-pants is in the correct state
Changes:
----------
ID: /etc/sudoers.d/90-aranhoide
Function: file.managed
Result: True
Comment: File /etc/sudoers.d/90-aranhoide is in the correct state
Changes:
----------
ID: /etc/sudoers.d/90-ox.to.a.cart
Function: file.managed
Result: True
Comment: File /etc/sudoers.d/90-ox.to.a.cart is in the correct state
Changes:
----------
ID: /etc/sudoers.d/90-lantern
Function: file.managed
Result: True
Comment: File /etc/sudoers.d/90-lantern is in the correct state
Changes:
----------
ID: unattended-upgrades
Function: pkg.installed
Result: True
Comment: Package unattended-upgrades is already installed
Changes:
----------
ID: /etc/apt/apt.conf.d/10periodic
Function: file.managed
Result: True
Comment: File /etc/apt/apt.conf.d/10periodic is in the correct state
Changes:
----------
ID: /etc/apt/apt.conf.d/50unattended-upgrades
Function: file.managed
Result: True
Comment: File /etc/apt/apt.conf.d/50unattended-upgrades is in the correct state
Changes:
----------
ID: boto
Function: pkg.removed
Result: True
Comment: None of the targeted packages are installed
Changes:
----------
ID: boto==2.9.5
Function: pip.installed
Result: False
Comment: State pip.installed found in sls boto is unavailable
Changes:
----------
ID: locale-gen en_US en_US.UTF-8 gl_ES.UTF-8 && dpkg-reconfigure locales && touch /root/locales-configured
Function: cmd.run
Result: True
Comment: unless execution succeeded
Changes:
----------
ID: enable-swap
Function: cmd.script
Result: True
Comment: unless execution succeeded
Changes:
----------
ID: Etc/UTC
Function: timezone.system
Result: True
Comment: Timezone Etc/UTC already set, UTC already set to Etc/UTC
Changes:
----------
ID: /etc/ufw/applications.d/lantern
Function: file.managed
Result: True
Comment: File /etc/ufw/applications.d/lantern is in the correct state
Changes:
----------
ID: open-proxy-port
Function: cmd.run
Name: ufw allow lantern_proxy
Result: True
Comment: Command "ufw allow lantern_proxy" run
Changes:
----------
pid:
23108
retcode:
0
stderr:
stdout:
Skipping adding existing rule
Skipping adding existing rule (v6)
----------
ID: /etc/default/ufw
Function: file.replace
Result: True
Comment: No changes were made
Changes:
----------
ID: /etc/ufw/sysctl.conf
Function: file.append
Result: True
Comment: Appended 0 lines
Changes:
----------
ID: /etc/ufw/before.rules
Function: file.append
Result: True
Comment: Appended 0 lines
Changes:
----------
ID: ufw-rules-ready
Function: cmd.run
Name: service ufw restart
Result: True
Comment: Command "service ufw restart" run
Changes:
----------
pid:
23127
retcode:
0
stderr:
stdout:
ufw stop/waiting
ufw start/running
----------
ID: curl
Function: pkg.installed
Result: True
Comment: Package curl is already installed
Changes:
----------
ID: mailutils
Function: pkg.installed
Result: True
Comment: Package mailutils is already installed
Changes:
----------
ID: /usr/bin/flashlight
Function: file.absent
Result: True
Comment: Removed file /usr/bin/flashlight
Changes:
----------
removed:
/usr/bin/flashlight
----------
ID: fl-installed
Function: cmd.run
Name: curl -L -O https://github.com/getlantern/flashlight/releases/download/0.0.2/flashlight && chmod a+x flashlight
Result: True
Comment: Command "curl -L -O https://github.com/getlantern/flashlight/releases/download/0.0.2/flashlight && chmod a+x flashlight" run
Changes:
----------
pid:
23513
retcode:
0
stderr:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 388 0 388 0 0 363 0 --:--:-- 0:00:01 --:--:-- 364
100 5904k 100 5904k 0 0 415k 0 0:00:14 0:00:14 --:--:-- 991k
stdout:
----------
ID: sudo /sbin/restart flashlight 2>&1 | logger -t flashlight_restarter
Function: cron.absent
Result: True
Comment: Cron sudo /sbin/restart flashlight 2>&1 | logger -t flashlight_restarter already absent
Changes:
----------
ID: fl-upstart-script
Function: file.managed
Name: /etc/init/flashlight.conf
Result: True
Comment: File /etc/init/flashlight.conf is in the correct state
Changes:
----------
ID: fl-service-registered
Function: cmd.run
Name: initctl reload-configuration
Result: True
Comment: Command "initctl reload-configuration" run
Changes:
----------
pid:
23531
retcode:
0
stderr:
stdout:
----------
ID: flashlight
Function: service.running
Result: True
Comment: Service restarted
Changes:
----------
flashlight:
True
----------
ID: pyflare
Function: pip.installed
Name: pyflare==1.0.2
Result: False
Comment: State pip.installed found in sls flashlight is unavailable
Changes:
----------
ID: /home/lantern/register_domains.py
Function: file.managed
Result: True
Comment: File /home/lantern/register_domains.py is in the correct state
Changes:
----------
ID: register-domains
Function: cmd.run
Name: /home/lantern/register_domains.py
Result: False
Comment: One or more requisite failed
Changes:
----------
ID: monitor-script
Function: file.managed
Name: /home/lantern/monitor.bash
Result: True
Comment: File /home/lantern/monitor.bash is in the correct state
Changes:
----------
ID: monitor
Function: cron.present
Name: /home/lantern/monitor.bash
Result: True
Comment: Cron /home/lantern/monitor.bash already present
Changes:
Summary
-------------
Succeeded: 79
Failed: 6
-------------
Total: 85
I've never seen this. I have just launched a new flashlight server a few hours ago and nothing went wrong. I'll look into this.
On Mon, Dec 29, 2014 at 4:07 PM, oxtoacart [email protected] wrote:
Here's the full log:
Executing run on ['fl-singapore-001-19']
fl-singapore-001-19:
ID: apt-upgrade Function: cmd.run Name: export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get upgrade -y -o DPkg::Options::=--force-confold && touch /root/apt_updated Result: True Comment: unless execution succeeded Changes:
ID: pip-prereqs Function: pkg.installed Name: python-markupsafe Result: True Comment: Package python-markupsafe is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: debconf-utils Result: True Comment: Package debconf-utils is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: python-support Result: True Comment: Package python-support is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: python Result: True Comment: Package python is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: python-pkg-resources Result: True Comment: Package python-pkg-resources is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: python-pip Result: True Comment: Package python-pip is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: python-m2crypto Result: True Comment: Package python-m2crypto is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: dctrl-tools Result: True Comment: Package dctrl-tools is already installed Changes:
ID: pip-prereqs Function: pkg.installed Name: python-crypto Result: True Comment: Package python-crypto is already installed Changes:
ID: setuptools Function: cmd.run Name: pip install --upgrade setuptools Result: True Comment: Command "pip install --upgrade setuptools" run Changes: ---------- pid: 22919 retcode: 0 stderr: stdout: Collecting setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-9.0.1-py2.py3-none-any.whl#md5=fba66e93e17d5a8c2dc9a8f0beddc5a9 Downloading setuptools-9.0.1-py2.py3-none-any.whl (552kB) Installing collected packages: setuptools Found existing installation: setuptools 9.0 Uninstalling setuptools-9.0: Successfully uninstalled setuptools-9.0 Successfully installed setuptools-9.0.1
ID: pip Function: cmd.run Name: pip install --upgrade pip && hash -r Result: True Comment: Command "pip install --upgrade pip && hash -r" run Changes: ---------- pid: 22927 retcode: 0 stderr: stdout: Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
ID: /etc/security/limits.conf Function: file.append Result: True Comment: Appended 0 lines Changes:
ID: aranhoide Function: user.present Result: True Comment: User aranhoide is present and up to date Changes:
ID: /home/aranhoide Function: file.directory Result: True Comment: Directory /home/aranhoide is in the correct state Changes:
ID: /home/aranhoide/.ssh Function: file.directory Result: True Comment: Directory /home/aranhoide/.ssh is in the correct state Changes:
ID: lantern Function: user.present Result: True Comment: User lantern is present and up to date Changes:
ID: /home/lantern Function: file.directory Result: True Comment: Directory /home/lantern is in the correct state Changes:
ID: /home/lantern/.ssh Function: file.directory Result: True Comment: Directory /home/lantern/.ssh is in the correct state Changes:
ID: myles Function: user.present Result: True Comment: User myles is present and up to date Changes:
ID: /home/myles Function: file.directory Result: True Comment: Directory /home/myles is in the correct state Changes:
ID: /home/myles/.ssh Function: file.directory Result: True Comment: Directory /home/myles/.ssh is in the correct state Changes:
ID: ox.to.a.cart Function: user.present Result: True Comment: User ox.to.a.cart is present and up to date Changes:
ID: /home/ox.to.a.cart Function: file.directory Result: True Comment: Directory /home/ox.to.a.cart is in the correct state Changes:
ID: /home/ox.to.a.cart/.ssh Function: file.directory Result: True Comment: Directory /home/ox.to.a.cart/.ssh is in the correct state Changes:
ID: pants Function: user.present Result: True Comment: User pants is present and up to date Changes:
ID: /home/pants Function: file.directory Result: True Comment: Directory /home/pants is in the correct state Changes:
ID: /home/pants/.ssh Function: file.directory Result: True Comment: Directory /home/pants/.ssh is in the correct state Changes:
ID: aranhoide_aranhoide_ssh Function: ssh_auth.present Result: True Comment: The authorized host key aranhoide_aranhoide_ssh is already present for user aranhoide Changes:
ID: aranhoide_lantern_ssh Function: ssh_auth.present Result: True Comment: The authorized host key aranhoide_lantern_ssh is already present for user lantern Changes:
ID: myles_lantern_ssh Function: ssh_auth.present Result: True Comment: The authorized host key myles_lantern_ssh is already present for user lantern Changes:
ID: myles_myles_ssh Function: ssh_auth.present Result: True Comment: The authorized host key myles_myles_ssh is already present for user myles Changes:
ID: ox.to.a.cart_lantern_ssh Function: ssh_auth.present Result: True Comment: The authorized host key ox.to.a.cart_lantern_ssh is already present for user lantern Changes:
ID: ox.to.a.cart_ox.to.a.cart_ssh Function: ssh_auth.present Result: True Comment: The authorized host key ox.to.a.cart_ox.to.a.cart_ssh is already present for user ox.to.a.cart Changes:
ID: pants_lantern_ssh Function: ssh_auth.present Result: True Comment: The authorized host key pants_lantern_ssh is already present for user lantern Changes:
ID: pants_pants_ssh Function: ssh_auth.present Result: True Comment: The authorized host key pants_pants_ssh is already present for user pants Changes:
ID: ufw Function: pkg.installed Result: True Comment: Package ufw is already installed Changes:
ID: ufw Function: service.running Result: True Comment: Service ufw is already enabled, and is in the desired state Changes:
ID: ufw allow openssh && echo y | ufw enable Function: cmd.run Result: True Comment: Command "ufw allow openssh && echo y | ufw enable" run Changes: ---------- pid: 22964 retcode: 0 stderr: stdout: Skipping adding existing rule Skipping adding existing rule (v6) Firewall is active and enabled on system startup
ID: fail2ban Function: pkg.removed Result: True Comment: None of the targeted packages are installed Changes:
ID: base-packages Function: pkg.installed Name: python-software-properties Result: True Comment: Package python-software-properties is already installed Changes:
ID: base-packages Function: pkg.installed Name: git Result: True Comment: Package git is already installed Changes:
ID: /etc/init.d/salt-minion Function: file.managed Result: True Comment: File /etc/init.d/salt-minion is in the correct state Changes:
ID: salt-minion Function: pkg.removed Result: True Comment: None of the targeted packages are installed Changes:
ID: remove-old-salt-install-dir Function: cmd.run Name: rm -rf /tmp/pip-build-root/salt Result: True Comment: Command "rm -rf /tmp/pip-build-root/salt" run Changes: ---------- pid: 23069 retcode: 0 stderr: stdout:
ID: salt-nodeps Function: pip.installed Name: salt==2014.1.10 Result: False Comment: State pip.installed found in sls salt_minion is unavailable Changes:
ID: salt-prereqs Function: pkg.installed Name: python-libcloud Result: True Comment: Package python-libcloud is already installed Changes:
ID: salt-prereqs Function: pkg.installed Name: libssl-dev Result: True Comment: Package libssl-dev is already installed Changes:
ID: salt-prereqs Function: pkg.installed Name: swig Result: True Comment: Package swig is already installed Changes:
ID: salt-prereqs Function: pkg.installed Name: python-dev Result: True Comment: Package python-dev is already installed Changes:
ID: salt-prereqs Function: pkg.installed Name: libzmq3-dev Result: True Comment: Package libzmq3-dev is already installed Changes:
ID: salt Function: pip.installed Name: salt==2014.1.10 Result: False Comment: One or more requisite failed Changes:
ID: salt-minion Function: service.running Result: False Comment: One or more requisite failed Changes:
ID: /etc/sudoers.d/90-myles Function: file.managed Result: True Comment: File /etc/sudoers.d/90-myles is in the correct state Changes:
ID: /etc/sudoers.d/90-pants Function: file.managed Result: True Comment: File /etc/sudoers.d/90-pants is in the correct state Changes:
ID: /etc/sudoers.d/90-aranhoide Function: file.managed Result: True Comment: File /etc/sudoers.d/90-aranhoide is in the correct state Changes:
ID: /etc/sudoers.d/90-ox.to.a.cart Function: file.managed Result: True Comment: File /etc/sudoers.d/90-ox.to.a.cart is in the correct state Changes:
ID: /etc/sudoers.d/90-lantern Function: file.managed Result: True Comment: File /etc/sudoers.d/90-lantern is in the correct state Changes:
ID: unattended-upgrades Function: pkg.installed Result: True Comment: Package unattended-upgrades is already installed Changes:
ID: /etc/apt/apt.conf.d/10periodic Function: file.managed Result: True Comment: File /etc/apt/apt.conf.d/10periodic is in the correct state Changes:
ID: /etc/apt/apt.conf.d/50unattended-upgrades Function: file.managed Result: True Comment: File /etc/apt/apt.conf.d/50unattended-upgrades is in the correct state Changes:
ID: boto Function: pkg.removed Result: True Comment: None of the targeted packages are installed Changes:
ID: boto==2.9.5 Function: pip.installed Result: False Comment: State pip.installed found in sls boto is unavailable Changes:
ID: locale-gen en_US en_US.UTF-8 gl_ES.UTF-8 && dpkg-reconfigure locales && touch /root/locales-configured Function: cmd.run Result: True Comment: unless execution succeeded Changes:
ID: enable-swap Function: cmd.script Result: True Comment: unless execution succeeded Changes:
ID: Etc/UTC Function: timezone.system Result: True Comment: Timezone Etc/UTC already set, UTC already set to Etc/UTC Changes:
ID: /etc/ufw/applications.d/lantern Function: file.managed Result: True Comment: File /etc/ufw/applications.d/lantern is in the correct state Changes:
ID: open-proxy-port Function: cmd.run Name: ufw allow lantern_proxy Result: True Comment: Command "ufw allow lantern_proxy" run Changes: ---------- pid: 23108 retcode: 0 stderr: stdout: Skipping adding existing rule Skipping adding existing rule (v6)
ID: /etc/default/ufw Function: file.replace Result: True Comment: No changes were made Changes:
ID: /etc/ufw/sysctl.conf Function: file.append Result: True Comment: Appended 0 lines Changes:
ID: /etc/ufw/before.rules Function: file.append Result: True Comment: Appended 0 lines Changes:
ID: ufw-rules-ready Function: cmd.run Name: service ufw restart Result: True Comment: Command "service ufw restart" run Changes: ---------- pid: 23127 retcode: 0 stderr: stdout: ufw stop/waiting ufw start/running
ID: curl Function: pkg.installed Result: True Comment: Package curl is already installed Changes:
ID: mailutils Function: pkg.installed Result: True Comment: Package mailutils is already installed Changes:
ID: /usr/bin/flashlight Function: file.absent Result: True Comment: Removed file /usr/bin/flashlight Changes: ---------- removed: /usr/bin/flashlight
ID: fl-installed Function: cmd.run Name: curl -L -O https://github.com/getlantern/flashlight/releases/download/0.0.2/flashlight && chmod a+x flashlight Result: True Comment: Command "curl -L -O https://github.com/getlantern/flashlight/releases/download/0.0.2/flashlight && chmod a+x flashlight" run Changes: ---------- pid: 23513 retcode: 0 stderr: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 388 0 388 0 0 363 0 --:--:-- 0:00:01 --:--:-- 364 100 5904k 100 5904k 0 0 415k 0 0:00:14 0:00:14 --:--:-- 991k
stdout:
ID: sudo /sbin/restart flashlight 2>&1 | logger -t flashlight_restarter Function: cron.absent Result: True Comment: Cron sudo /sbin/restart flashlight 2>&1 | logger -t flashlight_restarter already absent Changes:
ID: fl-upstart-script Function: file.managed Name: /etc/init/flashlight.conf Result: True Comment: File /etc/init/flashlight.conf is in the correct state Changes:
ID: fl-service-registered Function: cmd.run Name: initctl reload-configuration Result: True Comment: Command "initctl reload-configuration" run Changes: ---------- pid: 23531 retcode: 0 stderr: stdout:
ID: flashlight Function: service.running Result: True Comment: Service restarted Changes: ---------- flashlight: True
ID: pyflare Function: pip.installed Name: pyflare==1.0.2 Result: False Comment: State pip.installed found in sls flashlight is unavailable Changes:
ID: /home/lantern/register_domains.py Function: file.managed Result: True Comment: File /home/lantern/register_domains.py is in the correct state Changes:
ID: register-domains Function: cmd.run Name: /home/lantern/register_domains.py Result: False Comment: One or more requisite failed Changes:
ID: monitor-script Function: file.managed Name: /home/lantern/monitor.bash Result: True Comment: File /home/lantern/monitor.bash is in the correct state Changes:
ID: monitor Function: cron.present Name: /home/lantern/monitor.bash Result: True Comment: Cron /home/lantern/monitor.bash already present Changes:Summary
Succeeded: 79
Failed: 6
Total: 85
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/2119#issuecomment-68264658.
As a preliminary consideration, this machine is running with afisk's cloudmaster, not the general production one. I'll update it and all its minions to the latest salt config and see whether the problem persists..
Strangely enough, the problem fixes itself if I ssh into an affected machine and run salt-call state.highstate from there. Weird.
This is/was crazy. Even after upgrading by ssh'ing into the machine, further attempts to upgrade via salt command from the cloudmaster (i.e. salt 'fl-*' state.highstate) would fail.
Anyway, an upgraded setuptools and salt seems to fix it. I upgraded the existing servers in the afisk controller (some of them I can't even ssh into; I'll mail bns-ops about what to do with those). Currently upgrading the machines controlled by cloudmaster1-2. I'll close this ticket after that.
Fixed by deploying https://github.com/getlantern/lantern_aws/commit/c55914a73ddc005dbfe4eb389231ef29741c2903
Awesome @aranhoide! Curious about the details.
On Mon, Dec 29, 2014 at 9:25 PM, aranhoide [email protected] wrote:
Closed #2119 https://github.com/getlantern/lantern/issues/2119.
— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern/issues/2119#event-212722407.
President Brave New Software Project, Inc. https://www.getlantern.org pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89
Thanks @aranhoide
I think the problem was that we were upgrading pip unconditionally and only making sure setuptools was installed, so eventually we ended up with a pip version that supported wheel (pythonwheels.com) but a setuptools version (0.6) that didn't. This was not a problem for salt-call (which is what gets called locally for one-off jobs) since pip could be imported anyway, but somehow it seems to have confused the long-running salt-minion process, which is the one that handles upgrade requests from the master.
In retrospect, I think just upgrading setuptools and restarting the salt-minion process would have fixed this (even restarting the salt-minion would, on its own, have seemed to work, at least until next pip upgrade). I think upgrading the salt version only seemed to help because it involved restarting the salt-minion. Then again, since the latest stable salt version installed rather painlessly (after the setuptools upgrade) in all our servers I think it's worth keeping.
@aranhoide Thanks very much for tracking this down!
Just noticed that this ticket is closed – @aranhoide should it be moved to devel?
@scouttle I don't understand the question. This ticket is about backend servers getting into a broken state. Although some "code" (backend configuration in the lantern_aws project) changes were made as a result, the bulk of the fix involved manually massaging the servers back into shape. Thus, the fix is deployed live.
You could call this a hotfix, although right now I admit we're not (yet) following the usual branching strategy for the lantern_aws project.