Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

vlan & selfip on-boarding script should check the result of f5-rest-node call #33

@Rik-F5

Description

@Rik-F5

supported/scripts/onboard-network.sh

function onboard_network_run() {
    echo "Configuring vlan: ${vlan_name} self_ip: ${self_ip}"

    f5-rest-node /config/cloud/openstack/node_modules/@f5devcentral/f5-cloud-libs/scripts/network.js \
    -o "${logFile}" \
    --log-level debug \
    --host localhost \
    --user admin \
    --password-url file:///config/cloud/openstack/.adminPwd \
    --password-encrypted \
    "$vlan_opt" "$vlan" \
    --self-ip "name:${self_ip_name},address:${self_ip}/${self_ip_prefix},vlan:${vlan_name}${self_port_lockdown}" \
    "$gateway_opt" "$default_gateway"
}

This function been called without result checking. In my customer's case, the rest worker is not available at this stage and the on-boarding failed by no vlan & selfIP been created.

Apr 2 06:37:20 localhost err mcpd[6415]: 01070277:3: The requested vlan, vlangroup or tunnel (ha_net) was not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions