dragonresearch / rpki.net

Dragon Research Labs rpki.net RPKI toolkit
54 stars 30 forks source link

child does not see resources delegated from root via gooey #338

Closed sraustein closed 11 years ago

sraustein commented 11 years ago

As the root, altCA, I allocate a bunch of resources to my child rgnet. It looks good.

But when I log in as rgnet, the child does not seem to see the resources.

i can not attach file to ticket, so file is at http://archive.psg.com/320.jpg

Trac ticket #322 component gui priority major, owner melkins, created by randy on 2012-11-10T07:15:05Z, last modified 2012-11-11T04:02:10Z

sraustein commented 11 years ago

looks like multiple problems.

first off, looks like rpkid lost its connection to rpkid: {{{ Nov 10 14:26:56 ca0 rpkid[3473]: Generating new 2048-bit RSA key Nov 10 14:26:57 ca0 rpkid[3473]: Forced immediate run of periodic actions for self altCA[1] Nov 10 14:26:57 ca0 rpkid[3473]: Self altCA[1] polling parents Nov 10 14:26:57 ca0 rpkid[3473]: Sending "list" request to parent altCA Nov 10 14:26:57 ca0 rpkid[3473]: Parent altCA agrees that altCA has SKI MuEpVPhn-tI5I0XvX1h8YdrEvJI in resource class altCA Nov 10 14:26:57 ca0 rpkid[3473]: Sweeping <rpki.left_right.parent_elt object at 0x808891110> Nov 10 14:26:57 ca0 rpkid[3473]: Self altCA[1] updating children Nov 10 14:26:57 ca0 rpkid[3473]: Self altCA[1] updating ROAs Nov 10 14:26:57 ca0 rpkid[3473]: : Error on HTTP client connection localhost:4403 <class 'rpki.exceptions.HTTPRequestFailed'> HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away') Nov 10 14:26:57 ca0 rpkid[3473]: : Closing due to error Nov 10 14:26:57 ca0 rpkid[3473]: : Returning exception HTTPRequestFailed("HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away')",) to caller: HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away') Nov 10 14:26:57 ca0 rpkid[3473]: Could not fetch ROA requests for altCA, skipping: HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away') Nov 10 14:26:57 ca0 rpkid[3473]: Self altCA[1] updating Ghostbuster records Nov 10 14:26:57 ca0 rpkid[3473]: : Error on HTTP client connection localhost:4403 <class 'rpki.exceptions.HTTPRequestFailed'> HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away') Nov 10 14:26:57 ca0 rpkid[3473]: : Closing due to error Nov 10 14:26:57 ca0 rpkid[3473]: : Returning exception HTTPRequestFailed("HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away')",) to caller: HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away') Nov 10 14:26:57 ca0 rpkid[3473]: Could not fetch Ghostbuster record requests for altCA, skipping: HTTP request failed with status 500, reason Unhandled exception OperationalError: (2006, 'MySQL server has gone away') Nov 10 14:26:57 ca0 rpkid[3473]: Self altCA[1] regenerating CRLs and manifests }}}

rpkid still seems to be running, and i thought it had been fixed to retry the connection to mysqld.

i see the rgnet handle in the irdb, but i think at the time the user was created, rpkid may have been having problems so the step to sync irdb to rpkid may have failed. once rpkid is restarted, i'd try running 'rpkic synchronize' and see if that fixes the problem (it will take a bit for rgnet to receive its resources from its parent).

Trac comment by melkins on 2012-11-10T14:32:02Z

sraustein commented 11 years ago

rpkid still seems to be running, and i thought it had been fixed to retry the connection to mysqld.

That fix is not on trunk/ (yet).

Trac comment by sra on 2012-11-10T14:35:58Z

sraustein commented 11 years ago

all four daemons are running. but mysqld has been restarted, due to portupgrade, since daemons started

stopped and started daemons. ran 'rpkic synchronize'

logged in as rgnet, no resources. hit refresh and had resources.

yay!

Trac comment by randy on 2012-11-10T15:02:57Z

sraustein commented 11 years ago

Closed with resolution fixed