Skip to content

thing-flinger deploy install causes ddm routing to stop working with falcon-omicron topology #1613

Closed

Description

@andrewjstone

When thing-flinger deploy install is run twice, prefixes stop getting delivered:

[2022-08-17T07:06:46.352101097Z]  INFO: SledAgent/RSS/3459 on om1: Received prefixes from ddmd (prefixes={})
[2022-08-17T07:06:46.352378081Z]  INFO: SledAgent/RSS/3459 on om1: Waiting for 2 peers (currently have 1) (will retry after 261.961667ms)

Prefixes are properly transferred on first launch. It would be nice to be able to re-install omicron without having to re-launch VMs and install pre-requisites. This was the prior behavior before we actually had useful network functionality in Omicron like prefix routing via DDM :)

Activity

  1. self-assigned this
    on Aug 17, 2022
  2. added
    networking
    bootstrap services
    trust quorum
    on Aug 17, 2022
  3. andrewjstone commented on Aug 17, 2022

    @andrewjstone
    ContributorAuthor
  4. rcgoodfellow commented on Aug 17, 2022

    @rcgoodfellow
    Contributor

    Can you describe a bit more about the lifetime of the ddmd instances? Does thing-flinger deploy install tear down and restart the ddmd instances or do they remain running? I have fixed a bug recently that can prevent expected peering from taking place - but I'm no totally sure if that's in play here.

  5. andrewjstone commented on Aug 17, 2022

    @andrewjstone
    ContributorAuthor

    Can you describe a bit more about the lifetime of the ddmd instances? Does thing-flinger deploy install tear down and restart the ddmd instances or do they remain running? I have fixed a bug recently that can prevent expected peering from taking place - but I'm no totally sure if that's in play here.

    deploy install doesn't deal with ddmd explicitly. It does restart the sled-agent service. Should it also restart ddmd?

  6. rcgoodfellow commented on Aug 17, 2022

    @rcgoodfellow
    Contributor

    Ok. So is it accurate to say the following

    • t0: The topology starts up.
    • t1: deploy install runs.
    • t2: you see 2 ddm peers
    • t3: deploy install runs again (which does what exactly? does it clobber the underlying network ddmd is peering over?)
    • t4: you only see 1 of 2 ddm peers
  7. andrewjstone commented on Aug 17, 2022

    @andrewjstone
    ContributorAuthor

    Ok. So is it accurate to say the following

    • t0: The topology starts up.
    • t1: deploy install runs.
    • t2: you see 2 ddm peers
    • t3: deploy install runs again (which does what exactly? does it clobber the underlying network ddmd is peering over?)
    • t4: you only see 1 of 2 ddm peers

    Yes, that is accurate. All that deploy install does that's relevant is do an omicron package install which just puts files in the right place and then restarts sled-agent. https://github.com/oxidecomputer/omicron/blob/main/deploy/src/bin/thing-flinger.rs#L528-L581

    I only see the following relevant lines in the log:

    {"msg":"Starting mg-ddm service","v":0,"name":"SledAgent","level":30,"time":"2022-08-17T19:35:36.408677066Z","hostname":"om1","pid":16356}
    {"msg":"Importing mg-ddm service","v":0,"name":"SledAgent","level":30,"time":"2022-08-17T19:35:36.409845025Z","hostname":"om1","pid":16356,"path":"/opt/oxide/mg-ddm/pkg/ddm/manifest.xml"}
    {"msg":"Setting mg-ddm interface","v":0,"name":"SledAgent","level":30,"time":"2022-08-17T19:35:36.560431565Z","hostname":"om1","pid":16356,"interface":"net0/linklocal"}
    {"msg":"Enabling mg-ddm service","v":0,"name":"SledAgent","level":30,"time":"2022-08-17T19:35:36.566545161Z","hostname":"om1","pid":16356}
    
  8. andrewjstone commented on Aug 17, 2022

    @andrewjstone
    ContributorAuthor

    Ha, it turns out that doing a deploy uninstall before deploy install actually fixes the issue. Thanks to @jgallagher for the tip!

  9. andrewjstone commented on Aug 17, 2022

    @andrewjstone
    ContributorAuthor

    Going to just close this, given the fact that deploy uninstall solves it and it's not a general problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bootstrap servicesnetworkingtrust quorum

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions