O.k. Asking for some help, now.
I have Rancid running with CVS. Most thins are running fine:
- rancid-run is getiing configs, creating diffs etc.
- viewwc is showing the configs and the diffs just fine
- the rancid-api is showing the correct groupnames, and "configure rancid
integration'" i creating the right record in the right group's router.db.
but...
- although under "configure rancid integration" the right group name is
listed, the "view node rancid inventory" page makes a connection to the
wrong group URL: "
http://machine.name/rws/rancid/groups/wrong.group/node.name/configs/". Thr
group name mentioned in this request is ALWAYS the group name of the same
group (last name alphabetically in my case).
- If i do visit the "view node rancid inventory" page for a node under the
group name that's always filled in (so the group name is correct), the URL "
http://machine.name/rws/rancid/groups/correct.group/node.name/configs/"
shows: <ServiceMessage>No resources found</ServiceMessage>. However, If I go
to "http://machine.name/rws/rancid/groups/correct.group/node.name/configs" 9
no trailing slash) it shows a resource with <UrlViewVC>
http://machine.name/viewvc/correct.group/configs/node.name?view=log</UrlViewVC>,
which seems like a solution.
Any ideas about this one?
Regards,
On Fri, Jun 19, 2009 at 6:41 PM, Rocco RIONERO <rock@...> wrote:
> Definitely YES.
>
> RANCID-API service module currently ONLY supports CVS repositories. It was
> not
> documented into the (very short) README file but it could be inferred from
> the
> name of the RANCID-API configuration variable "commandCVS" and the
> corresponding configuration remarks.
>
> This is due to the customer's target environment the entire RWS package was
> originally developed for.
>
> I have plans to extend both the RWS framework and the RANCID-API itself in
> the
> near future and the Subversion support is already top-of-the-list.
>
> So stay tuned but... don't hold your breath. :-)
>
> In the meanwhile you just have to use CVS as your rancid's Revision Control
> System: I'm sorry about that.
>
> Regards,
> rock
>
>
> ### ORIGINAL MESSAGE ###
> #
> # From: "john ripper" <sniffert@...>
> # To: General OpenNMS Discussion <opennms-discuss@...>
> # Cc:
> # Subject: Re: [opennms-discuss] single quote causes rancid-opennms
> integration to fail...
> # Sent: Fri, 19 Jun 2009 15:14:09 +0200
>
> > Never mind problem no 1: caching / patience thing.
> >
> > number2 is a shame though.. viewvc works like a charm, but View Node
> > Rancid Inventory Info --> Inventory Elements gives the dreaded:
> > 550 code , which in XMl shows: error executing "/usr/bin/svn"
> (pid=21479):
> > exitcode=1; unable to get the list of resources
> >
> > regards.
> >
> > On Fri, Jun 19, 2009 at 3:02 PM, john ripper <sniffert@...>
> wrote:
> >
> > > Yes, group lists seem to be o.k. now.
> > >
> > > I'm a lot fruther now. 2 problems though:
> > >
> > > 1. I can't seem to be able to change groupmembership through Node -->
> > > Admin --> Configure Rancid Integration. The interface worsk fine, and
> > > the correct data is installed in the groups router.db. But after
> > > visting teh node again, the Rancid group-menbership for the node
> INSIDE
> > > opennms isn't changed --> wrong request.
> > >
> > > 2. could it be that the rws-api doesn't support subversion instead of
> > > cvs dor now? - error message for
> > > http://servername/rws/rancid/groups/trusted/nodename/configs/:
> > > <ServiceMessage>
> > > error executing "/usr/bin/svn" (pid=18409): exitcode=1; unable to get
> > > the list of resources </ServiceMessage>
> > > - message for http://servername/rws/rancid/groups/trusted/nodename/-->
> > > Resource>configs</Resource> , seems fine
> > >
> > > where rights should not be an issue
> > >
> > > regards
> > >
> > >
> > > On Fri, Jun 19, 2009 at 1:56 PM, Rocco RIONERO<rock@...>
> wrote:
> > >
> > > > > I'm back.
> > > > >
> > > > > Just fixed the problem: please update to "RANCID-API RWS Service
> > > > > Module" version 0.95.2009061901, it will be included in the
> > > > > package version 0.96.
> > > > >
> > > >
> > > > > You can download the updated service module (rancid.rws) directly
> > > > > from the public repository at the following URL:
> > > > >
> > > >
> > > > > http://opennms.svn.sourceforge.net/viewvc/opennms/rancid-
> > > > > api/trunk/src/main/we bapp/cgi-bin/rancid.rws?revision=13720
> > > > >
> > > >
> > > > > Just download the file, and save it as "rancid.rws" into the rws-
> > > > > cgi directory (overwriting the previous one).
> > > > >
> > > >
> > > > > Some feedback will be appreciated.
> > > > >
> > > > > Thank you very much for your collaboration.
> > > > >
> > > > > Best Regards,
> > > > > rock
> > > > >
> > > > > ### ORIGINAL MESSAGE ###
> > > > > #
> > > > > # From: "Rocco RIONERO" <rock@...>
> > > > > # To: General OpenNMS Discussion <opennms-
> > > > > discuss@...> # Cc:
> > > > > # Subject: Re: [opennms-discuss] single quote causes rancid-
> > > > > opennms integration to fail... # Sent: Fri, 19 Jun 2009 13:17:39
> > > > > +0200
> > > > >
> > > >
> > > > > Don't mind it, guys: I found it.
> > > > >
> > > > > It's due to a silly shell<->tcl interaction.
> > > > >
> > > > > Please, stay tuned for an upcoming fix.
> > > > >
> > > > > P.S.
> > > > > John & co.:
> > > > > YES, all reported problems related to failed operations on files
> > > > > have the same origin.
> > > > >
> > > > > Regards,
> > > > > rock
> > > > >
> > > > > ### ORIGINAL MESSAGE ###
> > > > > #
> > > > > # From: "Rocco RIONERO" <rock@...> # To: General OpenNMS
> > > > > Discussion <opennms-discuss@...> # Cc:
> > > > > # Subject: Re: [opennms-discuss] single quote causes rancid-
> > > > > opennms integration to fail... # Sent: Fri, 19 Jun 2009 12:23:26
> > > > > +0200
> > > > >
> > > > > > Lesly & Mark,
> > > > > > thank you for your replies.
> > > > > >
> > > > > > By looking at the list of groups the API returned to both of
> > > > > > you it appears that the erroneous quotes are stuffed-in by
> > > > > > the API itself.
> > > > > >
> > > > > > This is really unexpected, given the way the "rancid.conf"
> > > > > > file is processed by the API: I absolutely need to replicate
> > > > > > the problem here.
> > > > > >
> > > > > > Please, send me your EXACT "rancid.conf" file: the best way is
> > > > > > to send it directly to my email address in compressed form
> > > > > > (e.g. "gzipped"), in order to have it byte-by-byte identical.
> > > > > >
> > > > > > If you have some privacy concern about sending the integral
> > > > > > content of your "rancid.conf" file to me, please do the
> > > > > > following:
> > > > > >
> > > > > > 1) backup your original "rancid.conf" file: $ cp rancid.conf
> > > > > > rancid.conf.original
> > > > > >
> > > > > > 2) open the "rancid.conf" file with your editor (i.e. "vi"),
> > > > > > remove any sensitive information you don't want to disclose
> > > > > > and save the modified file;
> > > > > >
> > > > > > 3) send the already seen GET request to obtain the list of
> > > > > > groups from the API and ensure that the problem is still
> > > > > > present with the modified "rancid.conf" file, that is, it did
> > > > > > not disappear as side-effect of your modifications (i.e.
> > > > > > ensure that the wrong quotes are still returned into the list
> > > > > > of resources);
> > > > > >
> > > > > > 4) compress the modified "rancid.conf" file and send it to me;
> > > > > >
> > > > > > 5) restore your original "rancid.conf" file: $ cp
> > > > > > rancid.conf.original rancid.conf $ rm rancid.conf.original
> > > > > >
> > > > > > (of course you should not run rancid before having restored
> > > > > > your original configuration file).
> > > > > >
> > > > > > Thank you,
> > > > > > rock
> > > > > >
> > > > > > ### ORIGINAL MESSAGE ###
> > > > > > #
> > > > > > # From: "lesly dorval" <ladorval@...> # To: <opennms-
> > > > > > discuss@...> # Cc:
> > > > > > # Subject: Re: [opennms-discuss] single quote causes rancid-
> > > > > > opennms integration to fail... # Sent: Thu, 18 Jun 2009
> > > > > > 12:48:28 -0700 (PDT)
> > > > > >
> > > > > >
> > > > > > > GET http://your/server/name/rws/rancid?responsetype=text
> > > > > > >
> > > > > > >
> > > > > > > ---RWS-RESPONSE-BEGIN---
> > > > > > > RWS.ResponseStatus[0].Code[0]=Found
> > > > > > > RWS.ResponseStatus[0].Class[0]=Success
> > > > > > > RWS.ResponseStatus[0].Description[0]=Resource successfully
> > > > > > > accessed
> > > > > > >
> RWS.ResponseStatus[0].ResourceURI[0]=http://10.254.192.243/rws/rancid
> > > > > > >
> > > > > RWS.Resp
> > > > > > > onseStatus[0].Service[0]=RANCID-API
> > > > > > > RWS.ResponseStatus[0].ServiceMessage[0]=RANCID-API Service
> > > > > > > Informations
> > > > > > >
> RWS.ResponseContent[0].ResourceEntity[0].Application[0].Name[0]=RANCID-
> > > > > > >
> > > > > API
> > > > > > >
> > > > > > >
> > > > >
>
> RWS.ResponseContent[0].ResourceEntity[0].Application[0].Version[0]=0.92.200905
> > > > >
> > > > > > > 0501
> > > > > > >
> RWS.ResponseContent[0].ResourceEntity[0].Application[0].Info[0]=RWS
> service A
> > > > > > > PI for "rancid" with the addition of hardware inventory
> > > > > > > extensions
> > > > > > >
> > > > >
> > > > >
>
> RWS.ResponseContent[0].ResourceEntity[0].Config[0].fileRancidConf[0]=/usr/loca
> > > > >
> > > > > > > l/rancid/etc/rancid.conf
> > > > > >
> > > > > >
> > > > >
>
> RWS.ResponseContent[0].ResourceEntity[0].Config[0].pathRancidHome[0]=/home/ran
> > > > >
> > > > > > > cid
> > > > > >
> > > > > >
> > > > >
>
> RWS.ResponseContent[0].ResourceEntity[0].Config[0].pathBackup[0]=/home/rancid/
> > > > >
> > > > > > > tmp
> > > > > > >
> RWS.ResponseContent[0].ResourceEntity[0].Config[0].pathTemp[0]=/tmp
> > > > > >
> > > > > >
> > > > >
>
> RWS.ResponseContent[0].ResourceEntity[0].Config[0].commandCVS[0]=/usr/bin/svn
> > > > >
> > > > > > >
> RWS.ResponseContent[0].ResourceEntity[0].Config[0].urlViewVC[0]=/viewvc
> > > > > > >
> > > > > --- RW
> > > > > > > S-RESPONSE-END---
> > > > > > >
> > > > > > >
> > > > > > > GET
> > > > > > > http://your/server/name/rws/rancid/groups/?responsetype=text
> > > > > > >
> > > > > > > ---RWS-RESPONSE-BEGIN---
> > > > > > > RWS.ResponseStatus[0].Code[0]=Found
> > > > > > > RWS.ResponseStatus[0].Class[0]=Success
> > > > > > > RWS.ResponseStatus[0].Description[0]=Resource successfully
> > > > > > > accessed
> > > > > > >
> > > > >
> > > > >
> RWS.ResponseStatus[0].ResourceURI[0]=
> http://10.254.192.243/rws/rancid/groups/
> > > > >
> > > > > > > RWS.ResponseStatus[0].Service[0]=RANCID-API
> > > > > > > RWS.ResponseStatus[0].ServiceMessage[0]=List of resources
> > > > > > > RWS.ResponseContent[0].ResourceEntity[0].Resource[0]='a
> > > > > > > RWS.ResponseContent[0].ResourceEntity[0].Resource[1]=b'
> > > > > > > RWS.ResponseContent[0].ResourceEntity[0].Resource[2]=switches
> ---RWS- RESPON
> > > > > > > SE-END---
> > > > > > >
> > > > > > >
> > > > > > > ------------------------------------------------------------
> > > > > > > --------- --- --- --- Crystal Reports - New Free Runtime
> > > > > > > and 30 Day Trial Check out the new simplified licensing
> > > > > > > option that enables unlimited royalty-free distribution of
> > > > > > > the report engine for externally facing server and web
> > > > > > > deployment. http://p.sf.net/sfu/businessobjects
> > > > > > > _______________________________________________ Please read
> > > > > > > the OpenNMS Mailing List FAQ:
> > > > > > > http://www.opennms.org/index.php/Mailing_List_FAQ
> > > > > > >
> > > > > > > opennms-discuss mailing list
> > > > > > >
> > > > > > > To *unsubscribe* or change your subscription options, see
> > > > > > > the bottom of this page:
> > > > > > > https://lists.sourceforge.net/lists/listinfo/opennms-
> > > > > > > discuss
> > > > > > >
> > > > > > >
> > > > > > ### (end of original message) ###
> > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------
> > > > > > --------- --- --- Crystal Reports - New Free Runtime and 30
> > > > > > Day Trial Check out the new simplified licensing option that
> > > > > > enables unlimited royalty-free distribution of the report
> > > > > > engine for externally facing server and web deployment.
> > > > > > http://p.sf.net/sfu/businessobjects
> > > > > > _______________________________________________ Please read
> > > > > > the OpenNMS Mailing List FAQ:
> > > > > > http://www.opennms.org/index.php/Mailing_List_FAQ
> > > > > >
> > > > > > opennms-discuss mailing list
> > > > > >
> > > > > > To *unsubscribe* or change your subscription options, see the
> > > > > > bottom of this page:
> > > > > > https://lists.sourceforge.net/lists/listinfo/opennms-discuss
> > > > > >
> > > > > >
> > > > > ### (end of original message) ###
> > > > >
> > > > >
> > > > > ------------------------------------------------------------------
> > > > > --------- --- Crystal Reports - New Free Runtime and 30 Day
> > > > > Trial Check out the new simplified licensing option that enables
> > > > > unlimited royalty-free distribution of the report engine for
> > > > > externally facing server and web deployment.
> > > > > http://p.sf.net/sfu/businessobjects
> > > > > _______________________________________________ Please read the
> > > > > OpenNMS Mailing List FAQ:
> > > > > http://www.opennms.org/index.php/Mailing_List_FAQ
> > > > >
> > > > > opennms-discuss mailing list
> > > > >
> > > > > To *unsubscribe* or change your subscription options, see the
> > > > > bottom of this page:
> > > > > https://lists.sourceforge.net/lists/listinfo/opennms-discuss
> > > > >
> > > >
> > > > > ### (end of original message) ###
> > > >
> > > >
> > > > > ------------------------------------------------------------------
> > > > > ------------ Crystal Reports - New Free Runtime and 30 Day Trial
> > > > > Check out the new simplified licensing option that enables
> > > > > unlimited royalty-free distribution of the report engine for
> > > > > externally facing server and web deployment.
> > > > > http://p.sf.net/sfu/businessobjects
> > > > > _______________________________________________ Please read the
> > > > > OpenNMS Mailing List FAQ:
> > > > > http://www.opennms.org/index.php/Mailing_List_FAQ
> > > > >
> > > > > opennms-discuss mailing list
> > > > >
> > > > > To *unsubscribe* or change your subscription options, see the
> > > > > bottom of this page:
> > > > > https://lists.sourceforge.net/lists/listinfo/opennms-discuss
>
> ### (end of original message) ###
>
>
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>
> opennms-discuss mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss
>
|