move already deployed service to new vps with different ip address.

Vasiliy Tolstov v.tolstov at selfip.ru
Wed Oct 15 05:46:33 UTC 2014


I'm try to deploy wordpress app inside packer via manual provider,
inside packer i have addr 10.0.2.15 but in manual provider i'm use
name 127.0.0.1. All work fine and services are running. After that i'm
shutdown packer and move image to real server with address like
172.16.252.14, but nothing started after that: i have errors like:
environment: manual
machines:
  "0":
    agent-state: started
    agent-version: 1.20.9
    dns-name: 127.0.0.1
    instance-id: 'manual:'
    series: trusty
    hardware: arch=amd64 cpu-cores=1 mem=2001M
    state-server-member-status: has-vote
services:
  mysql:
    charm: local:trusty/mysql-326
    exposed: false
    relations:
      cluster:
      - mysql
      db:
      - wordpress
    units:
      mysql/0:
        agent-state: down
        agent-state-info: (started)
        agent-version: 1.20.9
        machine: "0"
        public-address: 127.0.0.1
  wordpress:
    charm: local:trusty/wordpress-1
    exposed: true
    relations:
      db:
      - mysql
      loadbalancer:
      - wordpress
    units:
      wordpress/0:
        agent-state: down
        agent-state-info: (started)
        agent-version: 1.20.9
        machine: "0"
        open-ports:
        - 80/tcp
        - 443/tcp
        public-address: 127.0.0.1

and in unit logs messages:
2014-10-15 05:46:03 INFO juju.state.api apiclient.go:242 dialing
"wss://10.0.2.15:17070/"
2014-10-15 05:46:03 INFO juju.state.api apiclient.go:250 error dialing
"wss://10.0.2.15:17070/": websocket.Dial wss://10.0.2.15:17070/: dial
tcp 10.0.2.15:17070: no route to host
2014-10-15 05:46:03 ERROR juju.worker runner.go:218 exited "api":
unable to connect to "wss://10.0.2.15:17070/"
2014-10-15 05:46:03 INFO juju.worker runner.go:252 restarting "api" in 3s


Does it possible to avoid this or i need to modify juju db to fix address?
-- 
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
jabber: vase at selfip.ru



More information about the Juju mailing list