Juju não consegue remover a relação [fechada]

7

Estou tentando remover e adicionar novamente a relação entre o painel openstack e o serviço de identidade.

Eu tenho duas unidades do serviço de painel e criei um cluster de alta disponibilidade, além de ter duas unidades do serviço de identidade com o encanto subordinado do cluster de alta disponibilidade.

Todas as 4 unidades estão no estado "iniciado", não em estado de erro.

Eu tento executar o seguinte comando:

xsmaas01:~$ sudo juju remove-relation openstack-dashboard keystone --debug
[sudo] password for sonali: 
2013-11-05 12:31:11 DEBUG juju.provider.maas environprovider.go:32 opening environment "maas".
2013-11-05 12:31:11 DEBUG juju state.go:160 waiting for DNS name(s) of state server instances [/MAAS/api/1.0/nodes/node-bc3afec8-19f2-11e3-8cf9-c6d6cdbfe570/]
2013-11-05 12:31:11 INFO juju.state open.go:68 opening state; mongo addresses: ["jujuzk.master:37017"]; entity ""
2013-11-05 12:31:11 INFO juju.state open.go:106 connection established
2013-11-05 12:31:11 INFO juju supercommand.go:286 command finished

e no juju-debug-log eu vejo isso:

jujuzk:2013-11-05 12:30:41 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"RequestId":37,"Type":"Pinger","Request":"Ping","Params":{}}
jujuzk:2013-11-05 12:30:41 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":37,"Response":{}}
jujuzk:2013-11-05 12:30:41 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"RequestId":37,"Type":"Pinger","Request":"Ping","Params":{}}
jujuzk:2013-11-05 12:30:41 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":37,"Response":{}}
opdashboard01:2013-11-05 12:31:23 DEBUG juju filter.go:311 worker/uniter/filter: got relations change
opdashboard01:2013-11-05 12:31:23 DEBUG juju filter.go:339 worker/uniter/filter: sent relations event
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-departed" hook (not implemented)
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:365 worker/uniter: committing "relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:383 worker/uniter: committed "relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-departed" hook (not implemented)
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:365 worker/uniter: committing "relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:383 worker/uniter: committed "relation-departed" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-broken" hook
opdashboard01:2013-11-05 12:31:23 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-broken" hook (not implemented)
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-broken" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:365 worker/uniter: committing "relation-broken" hook
opdashboard01:2013-11-05 12:31:23 INFO juju uniter.go:383 worker/uniter: committed "relation-broken" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-departed" hook
opks03:2013-11-05 12:31:33 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-departed" hook (not implemented)
opks03:2013-11-05 12:31:33 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-departed" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:365 worker/uniter: committing "relation-departed" hook
opks03:2013-11-05 12:31:33 DEBUG juju filter.go:311 worker/uniter/filter: got relations change
opks03:2013-11-05 12:31:33 INFO juju uniter.go:383 worker/uniter: committed "relation-departed" hook
opks03:2013-11-05 12:31:33 DEBUG juju filter.go:339 worker/uniter/filter: sent relations event
opks03:2013-11-05 12:31:33 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-departed" hook
opks03:2013-11-05 12:31:33 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-departed" hook (not implemented)
opks03:2013-11-05 12:31:33 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-departed" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:365 worker/uniter: committing "relation-departed" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:383 worker/uniter: committed "relation-departed" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-broken" hook
opks03:2013-11-05 12:31:33 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-broken" hook (not implemented)
opks03:2013-11-05 12:31:33 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-broken" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:365 worker/uniter: committing "relation-broken" hook
opks03:2013-11-05 12:31:33 INFO juju uniter.go:383 worker/uniter: committed "relation-broken" hook
opdashboard02:2013-11-05 12:31:26 DEBUG juju filter.go:311 worker/uniter/filter: got relations change
opdashboard02:2013-11-05 12:31:26 DEBUG juju filter.go:339 worker/uniter/filter: sent relations event
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-departed" hook (not implemented)
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:365 worker/uniter: committing "relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:383 worker/uniter: committed "relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:383 worker/uniter: committed "relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-broken" hook
opdashboard02:2013-11-05 12:31:26 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-broken" hook (not implemented)
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-broken" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:365 worker/uniter: committing "relation-broken" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:383 worker/uniter: committed "relation-broken" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:350 worker/uniter: running "identity-service-relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju context.go:174 worker/uniter: skipped "identity-service-relation-departed" hook (not implemented)
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:358 worker/uniter: ran "identity-service-relation-departed" hook
opdashboard02:2013-11-05 12:31:26 INFO juju uniter.go:365 worker/uniter: committing "relation-departed" hook
opks01:2013-11-05 12:32:19 DEBUG juju filter.go:311 worker/uniter/filter: got relations change
jujuzk:2013-11-05 12:31:32 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"RequestId":38,"Type":"Pinger","Request":"Ping","Params":{}}
jujuzk:2013-11-05 12:31:32 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":38,"Response":{}}
jujuzk:2013-11-05 12:31:38 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"RequestId":13,"Type":"Pinger","Request":"Ping","Params":{}}
jujuzk:2013-11-05 12:31:38 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":13,"Response":{}}

jujuzk:2013-11-05 12:32:31 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"Type":"Client","Request":"SetAnnotations","Params":{"Tag":"service-openstack-dashboard","Pairs":{"gui-x":"1917.0029802730883","gui-y":"-470.82699030543813"}},"RequestId":41}
jujuzk:2013-11-05 12:32:31 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":41,"Response":{}}
jujuzk:2013-11-05 12:32:32 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"RequestId":39,"Type":"Pinger","Request":"Ping","Params":{}}
jujuzk:2013-11-05 12:32:32 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":39,"Response":{}}
jujuzk:2013-11-05 12:32:35 DEBUG juju codec.go:168 rpc/jsoncodec: -> {"RequestId":5,"Response":{"Deltas":[["annotation","change",{"Tag":"service-openstack-dashboard","Annotations":{"gui-x":"1917.0029802730883","gui-y":"-470.82699030543813"}}]]}}
jujuzk:2013-11-05 12:32:35 DEBUG juju codec.go:103 rpc/jsoncodec: <- {"Type":"AllWatcher","Request":"Next","Id":"1","Params":{},"RequestId":42}

Mas ainda posso ver que a relação ainda existe. Além disso, se re-adicionar relação diz que a relação já existe, por isso não pode adicionar a relação.

O que poderia estar errado?

    
por SaM 05.11.2013 / 13:38

2 respostas

1

Você pode mostrar seu status de juju depois de executar a relação de remoção? As probabilidades são de que há uma unidade em um estado de erro. Se uma unidade cometer erros durante a remoção, ela não removerá a relação. Você precisará executar juju resolved nessa unidade com erro para que a remoção da relação continue.

    
por Marco Ceppi 10.01.2014 / 19:17
-1

Eu não estou muito familiarizado com Juju, mas isso pode ajudar ou dar uma ideia do que fazer.

link

link

Que tal "juju destroy-relation"?

    
por Devyn Collier Johnson 15.12.2013 / 02:28

Tags