133 | | === Administrative list-resources blocks other FOAM operations === |
134 | | |
135 | | In FOAM 0.6, an administrative list-resources call locks the FOAM database, and thus blocks other FOAM operations. If an experimenter tries to use FOAM while this is happening, they'll get a "database is locked" error; if they retry, it should work. (If the error persists, something else is probably wrong.) |
136 | | |
137 | | The FOAM monitoring code (from the 'tango-monitor-foam' package) does an administrative list-slivers whenever it runs, and it runs once per minute by default, so there's small window each minute (a second or two) when this can happen. |
138 | | |
139 | | This issue is fixed in FOAM 0.8. |
140 | | |
352 | | FOAM's database stores information about the !FlowVisor it manages, including its hostname and password. If you want to change that !FlowVisor's password, you need to change it both in FV itself, and also in FOAM. |
353 | | |
354 | | * Change the password in !FlowVisor: this assumes `/etc/flowvisor/config.xml` !FlowVisor's config, and is owned by user `openflow`: |
355 | | * Change the password in !FlowVisor's config: |
356 | | {{{ |
357 | | $ sudo service flowvisor stop |
358 | | $ sudo -u openflow fvconfig chpasswd /etc/flowvisor/config.xml fvadmin |
359 | | Enter password for account 'fvadmin' on the flowvisor: |
360 | | Enter password again |
361 | | $ sudo service flowvisor start |
362 | | }}} |
363 | | * If you store the password in `/etc/flowvisor/fvpasswd`, change it there too by hand: |
364 | | {{{ |
365 | | $ sudo vi /etc/flowvisor/fvpasswd |
366 | | }}} |
367 | | * Change the password in FOAM: |
| 342 | FOAM's database stores information about the !FlowVisor it manages, including its hostname and password. If you want to change that !FlowVisor's fvadmin password, you need to change it both in FV itself, and also in FOAM. |
| 343 | |
| 344 | === Change the fvadmin password in FlowVisor === |
| 345 | |
| 346 | First, change the password in Flowvisor. NOTE that this procedure differs depending on whether you're running FV 0.8.1.2 or 0.8.13; only do one of the following! |
| 347 | |
| 348 | For FV 0.8.1.2, use fvconfig; NOTE that this requires an outage, as you need to stop and restart FlowVisor: |
| 349 | |
| 350 | {{{ |
| 351 | sudo service flowvisor stop |
| 352 | sudo -u openflow fvconfig chpasswd /etc/flowvisor/config.xml fvadmin |
| 353 | (enter the new password, twice) |
| 354 | sudo service flowvisor start |
| 355 | }}} |
| 356 | |
| 357 | '''OR''' |
| 358 | |
| 359 | For FV 0.8.13, use fvctl; this does not cause an outage: |
| 360 | |
| 361 | {{{ |
| 362 | fvctl --passwd-file=/etc/flowvisor/fvpasswd changePasswd fvadmin |
| 363 | (enter the new password) |
| 364 | }}} |
| 365 | |
| 366 | === Update /etc/flowvisor/fvpsaswd === |
| 367 | |
| 368 | In either case, update /etc/flowvisor/fvpasswd to contain the new password when you're done. |
| 369 | |
| 370 | === Change the fvadmin password in FOAM === |
| 371 | |
| 372 | Change the password in FOAM: |
| 373 | |