openshift / assisted-installer-agent

Apache License 2.0
24 stars 78 forks source link

Agent not find my vswitch interface #39

Closed weizenberg closed 3 years ago

weizenberg commented 4 years ago

Hey folks,

I'm trying to use your utility with the new RedHat Openshift installation (4.6) on Heztner root servers. The agent is working, but detecting only the physical interface (enp4s0) and not the vswitch interface. I created the vswitch device with the following commands:

sudo ip link add link enp4s0 name enp4s0.4000 type vlan id 4000
sudo ip link set enp4s0.4000 mtu 1400
sudo ip link set dev enp4s0.4000 up
sudo ip addr add 192.168.100.3/24 brd 192.168.100.255 dev enp4s0.4000

My nmcli output (censored public IP):

enp4s0: connected to Wired Connection
        "Intel I210"
        ethernet (igb), 10:7B:44:AF:F1:EC, hw, mtu 1500
        ip4 default
        inet4 **.4.**.115/26
        route4 0.0.0.0/0
        route4 **.4.**.64/26
        inet6 ****::127b:****:feaf:****/64
        route6 fe80::/64
        route6 ff00::/8

cni-podman0: connected to cni-podman0
        "cni-podman0"
        bridge, 12:FF:14:F2:7A:5F, sw, mtu 1500
        inet4 10.88.0.1/16
        route4 10.88.0.0/16
        inet6 fe80::10ff:14ff:fef2:7a5f/64
        route6 fe80::/64
        route6 ff00::/8

enp4s0.4000: connected to enp4s0.4000
        "enp4s0.4000"
        vlan, 10:7B:44:AF:F1:EC, sw, mtu 1400
        inet4 192.168.100.3/24
        route4 192.168.100.0/24
        inet6 fe80::127b:44ff:feaf:f1ec/64
        route6 ff00::/8
        route6 fe80::/64

lo: unmanaged
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 213.133.98.98 213.133.99.99 213.133.100.100
        domains: your-server.de
        interface: enp4s0

agent --text=true json (censored not relevant information like public IP):

{
  "bmc_address": "0.0.0.0",
  "bmc_v6address": "::/0",
  "boot": {
    "current_boot_mode": "bios"
  },
  "cpu": {
    "architecture": "x86_64",
    "count": 12,
    "flags": [
      "fpu",
      "vme",
      "de",
      "pse",
      "tsc",
      "msr",
      "pae",
      "mce",
      "cx8",
      "apic",
      "sep",
      "mtrr",
      "pge",
      "mca",
      "cmov",
      "pat",
      "pse36",
      "clflush",
      "dts",
      "acpi",
      "mmx",
      "fxsr",
      "sse",
      "sse2",
      "ss",
      "ht",
      "tm",
      "pbe",
      "syscall",
      "nx",
      "pdpe1gb",
      "rdtscp",
      "lm",
      "constant_tsc",
      "arch_perfmon",
      "pebs",
      "bts",
      "rep_good",
      "nopl",
      "xtopology",
      "nonstop_tsc",
      "cpuid",
      "aperfmperf",
      "pni",
      "pclmulqdq",
      "dtes64",
      "monitor",
      "ds_cpl",
      "vmx",
      "smx",
      "est",
      "tm2",
      "ssse3",
      "sdbg",
      "fma",
      "cx16",
      "xtpr",
      "pdcm",
      "pcid",
      "dca",
      "sse4_1",
      "sse4_2",
      "x2apic",
      "movbe",
      "popcnt",
      "tsc_deadline_timer",
      "aes",
      "xsave",
      "avx",
      "f16c",
      "rdrand",
      "lahf_lm",
      "abm",
      "cpuid_fault",
      "epb",
      "invpcid_single",
      "pti",
      "intel_ppin",
      "ssbd",
      "ibrs",
      "ibpb",
      "stibp",
      "tpr_shadow",
      "vnmi",
      "flexpriority",
      "ept",
      "vpid",
      "fsgsbase",
      "tsc_adjust",
      "bmi1",
      "avx2",
      "smep",
      "bmi2",
      "erms",
      "invpcid",
      "cqm",
      "xsaveopt",
      "cqm_llc",
      "cqm_occup_llc",
      "dtherm",
      "ida",
      "arat",
      "pln",
      "pts",
      "md_clear",
      "flush_l1d"
    ],
    "frequency": 3800,
    "model_name": "Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz"
  },
  "disks": [
    {
      "by_path": "/dev/disk/by-path/pci-0000:00:1f.2-ata-1",
      "drive_type": "SSD",
      "hctl": "0:0:0:0",
      "model": "SAMSUNG_MZ7LM480",
      "name": "sda",
      "path": "/dev/sda",
      "serial": "S1YJNX0H603507",
      "size_bytes": 480103981056,
      "vendor": "ATA",
      "wwn": "0x5002538c403064d7"
    },
    {
      "by_path": "/dev/disk/by-path/pci-0000:00:1f.2-ata-3",
      "drive_type": "SSD",
      "hctl": "2:0:0:0",
      "model": "SAMSUNG_MZ7LM480",
      "name": "sdb",
      "path": "/dev/sdb",
      "serial": "S1YJNX0H603505",
      "size_bytes": 480103981056,
      "vendor": "ATA",
      "wwn": "0x5002538c403064d5"
    }
  ],
  "hostname": "static.***.251.***.138.clients.your-server.de",
  "interfaces": [
    {
      "biosdevname": "em1",
      "flags": [
        "up",
        "broadcast",
        "multicast"
      ],
      "has_carrier": true,
      "ipv4_addresses": [
        "***.201.***.139/26"
      ],
      "ipv6_addresses": [
        "****::3697:****:fe5a:***/64"
      ],
      "mac_address": "**:97:f6:**:0d:8f",
      "mtu": 1500,
      "name": "enp4s0",
      "product": "0x1533",
      "speed_mbps": 1000,
      "vendor": "0x8086"
    }
  ],
  "memory": {
    "physical_bytes": 274877906944,
    "usable_bytes": 270361206784
  },
  "system_vendor": {
    "manufacturer": "ASUSTeK COMPUTER INC.",
    "product_name": "Z10PA-U8 Series",
    "serial_number": "System Serial Number"
  }
}
romfreiman commented 4 years ago

@weizenberg can you please elaborate what's the use case? It's not a standalone utility but part of assisted installer product

https://cloud.redhat.com/openshift/install/metal -> Assisted Bare Metal Installer

openshift-bot commented 3 years ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot commented 3 years ago

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot commented 3 years ago

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-ci-robot commented 3 years ago

@openshift-bot: Closing this issue.

In response to [this](https://github.com/openshift/assisted-installer-agent/issues/39#issuecomment-789721931): >Rotten issues close after 30d of inactivity. > >Reopen the issue by commenting `/reopen`. >Mark the issue as fresh by commenting `/remove-lifecycle rotten`. >Exclude this issue from closing again by commenting `/lifecycle frozen`. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.