从DigitalOcean

时间:2016-11-04 13:30:12

标签: digital-ocean salt-stack

我无法从地图文件中创建一个minion,不知道发生了什么。一个月前我的脚本工作正常,现在它失败了。我试图对它做一些研究,但我找不到任何关于它的东西。有人可以查看我的DEBUG日志吗? minion是在DigitalOcean上创建的,但主服务器根本无法连接到它。

所以我跑: salt-cloud -P -m /etc/salt/cloud.maps.d/production.map -l debug

主人在Ubuntu 16.04.1 x64上运行,也就是仆从。 我使用最新的saltstack库: echo“deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest xenial main”>> /etc/apt/sources.list.d/saltstack.list

我测试了2016.3.2和2016.3.3,有趣的是,相同的脚本在4周前工作正常,我认为必须要改变。

ERROR:

Writing /usr/lib/python2.7/dist-packages/salt-2016.3.3.egg-info
 *  INFO: Running install_ubuntu_git_post()
disabled
Created symlink from /etc/systemd/system/multi-user.target.wants/salt-minion.service to /lib/systemd/system/salt-minion.service.
 *  INFO: Running install_ubuntu_check_services()
 *  INFO: Running install_ubuntu_restart_daemons()
Job for salt-minion.service failed because a configured resource limit was exceeded. See "systemctl status salt-minion.service" and "journalctl -xe" for details.
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
 * ERROR: No init.d support for salt-minion was found
 * ERROR: Fai
[DEBUG   ] led to run install_ubuntu_restart_daemons()!!!
[ERROR   ] Failed to deploy 'minion-zk-0'. Error: Command 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /etc/salt/keys/cloud/do.pem -p 22 root@REMOVED_IP '/tmp/.saltcloud-5d18c002-e817-46d5-9fb2-d3bdb2dfe7fd/deploy.sh -c '"'"'/tmp/.saltcloud-5d18c002-e817-46d5-9fb2-d3bdb2dfe7fd'"'"' -P git v2016.3.3'' failed. Exit code: 1
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 2293, in create_multiprocessing
    local_master=parallel_data['local_master']
  File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1281, in create
    output = self.clouds[func](vm_)
  File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/digital_ocean.py", line 481, in create
    ret = __utils__['cloud.bootstrap'](vm_, __opts__)
  File "/usr/lib/python2.7/dist-packages/salt/utils/cloud.py", line 527, in bootstrap
    deployed = deploy_script(**deploy_kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/utils/cloud.py", line 1516, in deploy_script
    if root_cmd(deploy_command, tty, sudo, **ssh_kwargs) != 0:
  File "/usr/lib/python2.7/dist-packages/salt/utils/cloud.py", line 2167, in root_cmd
    retcode = _exec_ssh_cmd(cmd, allow_failure=allow_failure, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/utils/cloud.py", line 1784, in _exec_ssh_cmd
    cmd, proc.exitstatus
SaltCloudSystemExit: Command 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /etc/salt/keys/cloud/do.pem -p 22 root@REMOVED_ID '/tmp/.saltcloud-5d18c002-e817-46d5-9fb2-d3bdb2dfe7fd/deploy.sh -c '"'"'/tmp/.saltcloud-5d18c002-e817-46d5-9fb2-d3bdb2dfe7fd'"'"' -P git v2016.3.3'' failed. Exit code: 1
[DEBUG   ] LazyLoaded nested.output
minion-zk-0:
    ----------
    Error:
        Command 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /etc/salt/keys/cloud/do.pem -p 22 root@REMOVED_IP '/tmp/.saltcloud-5d18c002-e817-46d5-9fb2-d3bdb2dfe7fd/deploy.sh -c '"'"'/tmp/.saltcloud-5d18c002-e817-46d5-9fb2-d3bdb2dfe7fd'"'"' -P git v2016.3.3'' failed. Exit code: 1
root@master-zk:/etc/salt/cloud.maps.d# salt '*' test.ping
minion-zk-0:
    Minion did not return. [No response]
root@master-zk:/etc/salt/cloud.maps.d#

1 个答案:

答案 0 :(得分:1)

它位于 <asp:FormView ID="FVClient" runat="server" DataKeyNames="ID" DataSourceID="SqlDataSource1" OnItemUpdated="FVClient_ItemUpdated"> <ItemTemplate> ... <div class="clear-fix col-md-12"> <div class="form-group"> <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" CssClass="clear-fix btn btn-primary" /> <asp:LinkButton ID="HomeButton" runat="server" CausesValidation="False" CommandName="Home" Text="Home" CssClass="clear-fix btn btn-primary" PostBackUrl="~/" /> </div> </div> </ItemTemplate> <EditItemTemplate > ... <div class="form-group"> <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Text="Save" CssClass="clear-fix btn btn-primary" Enabled="true" /> <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="clear-fix btn btn-primary" /> </div> </div> </EditItemTemplate> </asp:FormView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dbc %>" SelectCommand="..." UpdateCommand="Exec MyStoredProc @ID, @sName, @sCode, @sAddr1, @sAddr2, @sCity, @sState, @sZip, @sContact, @sPhone1, @sPhone2, @sEmail, @sAltEmail, @sNotes, 1" > <SelectParameters> <asp:SessionParameter DefaultValue="0" Name="ID" SessionField="client" Type="Int32" /> </SelectParameters> <UpdateParameters> <asp:SessionParameter Name="ID" Type="Int32" SessionField="client" /> <asp:Parameter Name="sName" Type="String" /> <asp:Parameter Name="sCode" Type="String" /> <asp:Parameter Name="sAddr1" Type="String" /> <asp:Parameter Name="sAddr2" Type="String" /> <asp:Parameter Name="sCity" Type="String" /> <asp:Parameter Name="sState" Type="String" /> <asp:Parameter Name="sZip" Type="String" /> <asp:Parameter Name="sContact" Type="String" /> <asp:Parameter Name="sPhone1" Type="String" /> <asp:Parameter Name="sPhone2" Type="String" /> <asp:Parameter Name="sEmail" Type="String" /> <asp:Parameter Name="sAltEmail" Type="String" /> <asp:Parameter Name="sNotes" Type="String" /> </UpdateParameters> </asp:SqlDataSource> /etc/salt/cloud.profiles.d//etc/salt/cloud.providers.d/中的云配置中。只需弄清楚在哪里并将值/etc/salt/cloud.d/更改为您的主人IP。

我目前在我的提供商设置中执行此操作:

salt