./bldr deploy:journal,prod upgrade Python "Press [ENTER] to continue or ctrl-c to cancel adding it"

14 views
Skip to first unread message

Jennifer Strejevitch

unread,
Aug 14, 2017, 6:18:20 AM8/14/17
to elife-continuum-list
When the output bellow asks me to Press [ENTER] to continue nothing happens.

./bldr deploy:journal,prod
2017-08-14 11:15:02,342 - WARNING - MainProcess - buildercore.decorators - TODO: `_pick` renamed from `_pick` to something. `choose` ?
please pick: (alternative config)
1 - skip this step
2 - baseline
    "baseline environment for journal. ELB on top of multiple EC2 instances"

> 1
2017-08-14 11:15:04,603 - INFO - MainProcess - buildercore.decorators - feature 'write-context-to-s3' is disabled, returning silently
2017-08-14 11:15:05,116 - INFO - MainProcess - deploy - stack 'journal--prod' exists, skipping creation
2017-08-14 11:15:05,625 - INFO - MainProcess - buildercore.bootstrap - updating stack journal--prod
2017-08-14 11:15:06,345 - INFO - MainProcess - buildercore.core - Executing on all ec2 nodes ({u'i-08d46f150f8903b4d': u'54.165.110.217'}), concurrency None
[54.165.110.217] Executing task 'single_node_work'
2017-08-14 11:15:08,852 - INFO - 54.165.110.217 - buildercore.bootstrap - no cfn outputs found or overwrite=True, writing /etc/cfn-info.json ...
[54.165.110.217] put: <file obj> -> /etc/cfn-info.json
[54.165.110.217] download: <file obj> <- /etc/build-vars.json.b64
[54.165.110.217] put: /Users/jen.strejevitch/Projects/de-elife/builder/scripts/bootstrap.sh -> /tmp/bootstrap.sh-20170814111513
[54.165.110.217] sudo: /bin/bash /tmp/bootstrap.sh-20170814111513 2016.3 journal--prod--1 false 10.100.30.238
[54.165.110.217] out:
[54.165.110.217] out: echo "-----------------------------"
[54.165.110.217] out: + echo -----------------------------
[54.165.110.217] out: -----------------------------
[54.165.110.217] out:
[54.165.110.217] out: if [ "$#" -ne 4 ]; then
[54.165.110.217] out:     echo "Usage: ./bootstrap.sh version minion_id install_master master_ipaddr"
[54.165.110.217] out:     echo "Example: ./bootstrap.sh 2016.3.4 journal--end2end--1 false 10.0.0.1"
[54.165.110.217] out:     exit 1
[54.165.110.217] out: fi
[54.165.110.217] out: + '[' 4 -ne 4 ']'
[54.165.110.217] out:
[54.165.110.217] out: version=$1
[54.165.110.217] out: + version=2016.3
[54.165.110.217] out: minion_id=$2
[54.165.110.217] out: + minion_id=journal--prod--1
[54.165.110.217] out: install_master=$3
[54.165.110.217] out: + install_master=false
[54.165.110.217] out: master_ipaddr=$4
[54.165.110.217] out: + master_ipaddr=10.100.30.238
[54.165.110.217] out:
[54.165.110.217] out: # ensures the SSH_AUTH_SOCK envvar is retained when we sudo to root
[54.165.110.217] out: # this allows the root user to talk to private git repos
[54.165.110.217] out: echo 'Defaults>root env_keep+=SSH_AUTH_SOCK' > /etc/sudoers.d/00-ssh-auth-sock-root
[54.165.110.217] out: + echo 'Defaults>root env_keep+=SSH_AUTH_SOCK'
[54.165.110.217] out: chmod 440 /etc/sudoers.d/00-ssh-auth-sock-root
[54.165.110.217] out: + chmod 440 /etc/sudoers.d/00-ssh-auth-sock-root
[54.165.110.217] out: chmod -R 777 /tmp
[54.165.110.217] out: + chmod -R 777 /tmp
[54.165.110.217] out:
[54.165.110.217] out:
[54.165.110.217] out: installing=false
[54.165.110.217] out: + installing=false
[54.165.110.217] out: upgrading=false
[54.165.110.217] out: + upgrading=false
[54.165.110.217] out: if [ ! -e /root/events.log ]; then
[54.165.110.217] out:     # we're installing for the first time if: we can't find an event.log file.
[54.165.110.217] out:     # this file is deleted upon stack creation and populated after successful
[54.165.110.217] out:     # salt installation
[54.165.110.217] out:     installing=true
[54.165.110.217] out: else
[54.165.110.217] out:     if ! (salt-minion --version | grep "$version"); then
[54.165.110.217] out:         upgrading=true
[54.165.110.217] out:     fi
[54.165.110.217] out: fi
[54.165.110.217] out: + '[' '!' -e /root/events.log ']'
[54.165.110.217] out: + installing=true
[54.165.110.217] out:
[54.165.110.217] out: upgrade_python=false
[54.165.110.217] out: + upgrade_python=false
[54.165.110.217] out: install_git=false
[54.165.110.217] out: + install_git=false
[54.165.110.217] out: # Python is such a hard dependency of Salt that we have to upgrade it outside of
[54.165.110.217] out: # Salt to avoid changing it while it is running
[54.165.110.217] out: python_version=$(dpkg-query -W --showformat='${Version}' python2.7) # e.g. 2.7.5-5ubuntu3
[54.165.110.217] out: dpkg-query -W --showformat='${Version}' python2.7
[54.165.110.217] out: ++ dpkg-query -W '--showformat=${Version}' python2.7
[54.165.110.217] out: + python_version=2.7.6-8ubuntu0.2
[54.165.110.217] out: if dpkg --compare-versions "$python_version" lt 2.7.12; then
[54.165.110.217] out:     # we used this, which is not available anymore, to provide a more recent Python 2.7
[54.165.110.217] out:     # let's remove it to avoid apt-get update errors
[54.165.110.217] out:     rm -f /etc/apt/sources.list.d/fkrull-deadsnakes-python2_7-trusty.list
[54.165.110.217] out:     # provides python2.7[.13] package and some dependencies
[54.165.110.217] out:     add-apt-repository ppa:jonathonf/python-2.7
[54.165.110.217] out:     # provides a recent python-urllib3 (1.13.1-2) because:
[54.165.110.217] out:     # libpython2.7-stdlib : Breaks: python-urllib3 (< 1.9.1-3) but 1.7.1-1ubuntu4 is to be installed
[54.165.110.217] out:     # due to the previous PPA
[54.165.110.217] out:     add-apt-repository ppa:ross-kallisti/python-urllib3
[54.165.110.217] out:     upgrade_python=true
[54.165.110.217] out: fi
[54.165.110.217] out: + dpkg --compare-versions 2.7.6-8ubuntu0.2 lt 2.7.12
[54.165.110.217] out: + rm -f /etc/apt/sources.list.d/fkrull-deadsnakes-python2_7-trusty.list
[54.165.110.217] out: + add-apt-repository ppa:jonathonf/python-2.7
[54.165.110.217] out:
[54.165.110.217] out: Press [ENTER] to continue or ctrl-c to cancel adding it

Jennifer Strejevitch

unread,
Aug 14, 2017, 6:20:57 AM8/14/17
to elife-continuum-list
Actually Journal instance seems to have been created but the interface doesn't make it clear. 

Giorgio Sironi

unread,
Aug 14, 2017, 6:33:47 AM8/14/17
to Jennifer Strejevitch, elife-continuum-list
You are right that the instance has been created, and you can SSH into it. However Salt hasn't run yet as this is its bootstrap script getting stuck.

The reason it gets stuck is that add-apt-repository is requiring a user confirmation. I'll update builder to solve this bug and have you rerun the command (it should work on the existing instance then).

--
You received this message because you are subscribed to the Google Groups "elife-continuum-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elife-continuum-list+unsub...@googlegroups.com.
To post to this group, send email to elife-continuum-list@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elife-continuum-list/5cdc4d8b-2812-4933-92e9-ba74f15ca7e6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Giorgio Sironi
@giorgiosironi

Giorgio Sironi

unread,
Aug 14, 2017, 6:50:18 AM8/14/17
to Jennifer Strejevitch, elife-continuum-list

To unsubscribe from this group and stop receiving emails from it, send an email to elife-continuum-list+unsubscrib...@googlegroups.com.

To post to this group, send email to elife-continuum-list@googlegroups.com.



--
Giorgio Sironi
@giorgiosironi



--
Giorgio Sironi
@giorgiosironi
Reply all
Reply to author
Forward
0 new messages