Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more meaningful messages or logs for "The feature requested is not implemented" #1050

Open
Nowaker opened this issue Mar 30, 2014 · 0 comments

Comments

@Nowaker
Copy link
Contributor

Nowaker commented Mar 30, 2014

After installing an agent on a new machine, it wasn't working for me. I was able to create a VM, but I was not able to list networks. I was able to define VM XML, but I was not able to create a new disk in Storage tab.

Four hours of debugging led me to find the reason: #1049.

Since this kind of problem always repeats for a lot of users we need a better error reporting for this.

If some modules don't load (like in #1049) we need a way of knowing it. Whenever Archipel Agent receives a stanza that no module wants to handle, ERROR (or at least WARN) should be logged:

ERROR: Got a stanza that no module can process. You are probably missing a module, module hasn't been installed correctly, or you haven't enabled it in archipel.conf.
INFO: Currently activated modules: a, b, c.
INFO: Currently installed modules: a, b, c, d, e, f.

xmpppy log:

Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: socket       got   <iq from='admin@xmpp.pacmanvps.com/ArchipelController' to='asgard@xmpp.pacmanvps.com/asgard.pacmanvps.com' type='get' id='51124'>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <query xmlns='archipel:hypervisor:network'>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <archipel action='get'/>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </query>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </iq>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <iq from='admin@xmpp.pacmanvps.com/ArchipelController' to='asgard@xmpp.pacmanvps.com/asgard.pacmanvps.com' type='get' id='51125'>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <query xmlns='archipel:hypervisor:network'>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <archipel action='getnics'/>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </query>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </iq>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: dispatcher   ok    Got jabber:client/iq stanza
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: dispatcher   ok    Dispatching iq stanza with type->get props->[u'archipel:hypervisor:network'] id->51124
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: socket       sent  <iq to="admin@xmpp.pacmanvps.com/ArchipelController" from="asgard@xmpp.pacmanvps.com/asgard.pacmanvps.com" id="51124" type="error">
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <query xmlns="archipel:hypervisor:network">
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <archipel action="get" />
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </query>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <error code="501" type="cancel">
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The feature requested is not implemented by the recipient or server and therefore cannot be processed.</text>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </error>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </iq>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: dispatcher   ok    Got jabber:client/iq stanza
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: dispatcher   ok    Dispatching iq stanza with type->get props->[u'archipel:hypervisor:network'] id->51125
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: DEBUG: socket       sent  <iq to="admin@xmpp.pacmanvps.com/ArchipelController" from="asgard@xmpp.pacmanvps.com/asgard.pacmanvps.com" id="51125" type="error">
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <query xmlns="archipel:hypervisor:network">
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <archipel action="getnics" />
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </query>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <error code="501" type="cancel">
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The feature requested is not implemented by the recipient or server and therefore cannot be processed.</text>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </error>
Mar 30 23:49:30 asgard.pacmanvps.com runarchipel[2084]: </iq>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant