{"action":"created","issue":{"url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1092","repository_url":"https://api.github.com/repos/kubevirt/kubevirt","labels_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1092/labels{/name}","comments_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1092/comments","events_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1092/events","html_url":"https://github.com/kubevirt/kubevirt/issues/1092","id":327595183,"number":1092,"title":"failed to create virtual machine pod","user":{"login":"vatsalparekh","id":6758282,"avatar_url":"https://avatars3.githubusercontent.com/u/6758282?v=4","gravatar_id":"","url":"https://api.github.com/users/vatsalparekh","html_url":"https://github.com/vatsalparekh","followers_url":"https://api.github.com/users/vatsalparekh/followers","following_url":"https://api.github.com/users/vatsalparekh/following{/other_user}","gists_url":"https://api.github.com/users/vatsalparekh/gists{/gist_id}","starred_url":"https://api.github.com/users/vatsalparekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatsalparekh/subscriptions","organizations_url":"https://api.github.com/users/vatsalparekh/orgs","repos_url":"https://api.github.com/users/vatsalparekh/repos","events_url":"https://api.github.com/users/vatsalparekh/events{/privacy}","received_events_url":"https://api.github.com/users/vatsalparekh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-30T06:50:49Z","updated_at":"2018-05-30T08:49:01Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Created a VM on OCP `3.10`with the [working-template](https://github.com/ManageIQ/manageiq-providers-kubevirt/blob/master/manifests/working-template.yml) from manageiq\r\nI see the below message in the vm object status section\r\n```\r\n  status:\r\n    conditions:\r\n    - lastProbeTime: null\r\n      lastTransitionTime: 2018-05-30T06:33:50Z\r\n      message: 'failed to create virtual machine pod: Pod \"virt-launcher-vparekh.test003-5cflf\"\r\n        is invalid: spec.hostname: Invalid value: \"vparekh.test003\": a DNS-1123 label\r\n        must consist of lower case alphanumeric characters or ''-'', and must start\r\n        and end with an alphanumeric character (e.g. ''my-name'',  or ''123-abc'',\r\n        regex used for validation is ''[a-z0-9]([-a-z0-9]*[a-z0-9])?'')'\r\n      reason: FailedCreate\r\n      status: \"False\"\r\n      type: Synchronized\r\n    phase: Pending\r\n```\r\n\r\nWhole VM object\r\n```\r\n[root@cnv-executor-vparekhmiq-master1 ~]# oc get vms vparekh.test001 -o yaml \r\napiVersion: kubevirt.io/v1alpha1\r\nkind: VirtualMachine\r\nmetadata:\r\n  annotations:\r\n    presets.virtualmachines.kubevirt.io/presets-applied: kubevirt.io/v1alpha1\r\n  clusterName: \"\"\r\n  creationTimestamp: 2018-05-30T06:33:24Z\r\n  finalizers:\r\n  - foregroundDeleteVirtualMachine\r\n  generateName: vparekh.test001\r\n  generation: 1\r\n  name: vparekh.test001\r\n  namespace: default\r\n  ownerReferences:\r\n  - apiVersion: kubevirt.io/v1alpha1\r\n    blockOwnerDeletion: true\r\n    controller: true\r\n    kind: OfflineVirtualMachine\r\n    name: vparekh.test001\r\n    uid: 4baad838-63d3-11e8-a395-fa163ebb795f\r\n  resourceVersion: \"160991\"\r\n  selfLink: /apis/kubevirt.io/v1alpha1/namespaces/default/virtualmachines/vparekh.test001\r\n  uid: 5a8fa466-63d3-11e8-a395-fa163ebb795f\r\nspec:\r\n  domain:\r\n    cpu:\r\n      cores: 8\r\n    devices:\r\n      disks:\r\n      - disk: {}\r\n        name: registrydisk\r\n        volumeName: registryvolume\r\n      - disk: {}\r\n        name: cloudinitdisk\r\n        volumeName: cloudinitvolume\r\n    firmware:\r\n      uuid: bebee2cb-673e-516d-b253-9a6a0964b462\r\n    machine:\r\n      type: q35\r\n    resources:\r\n      requests:\r\n        memory: 4Gi\r\n  volumes:\r\n  - name: registryvolume\r\n    registryDisk:\r\n      image: kubevirt/fedora-cloud-registry-disk-demo:latest\r\n  - cloudInitNoCloud:\r\n      userDataBase64: I2Nsb3VkLWNvbmZpZwpwYXNzd29yZDogYXRvbWljCnNzaF9wd2F1dGg6IFRydWUKY2hwYXNzd2Q6IHsgZXhwaXJlOiBGYWxzZSB9Cg==\r\n    name: cloudinitvolume\r\nstatus:\r\n  conditions:\r\n  - lastProbeTime: null\r\n    lastTransitionTime: 2018-05-30T06:33:23Z\r\n    message: 'failed to create virtual machine pod: Pod \"virt-launcher-vparekh.test001-s4fnt\"\r\n      is invalid: spec.hostname: Invalid value: \"vparekh.test001\": a DNS-1123 label\r\n      must consist of lower case alphanumeric characters or ''-'', and must start\r\n      and end with an alphanumeric character (e.g. ''my-name'',  or ''123-abc'', regex\r\n      used for validation is ''[a-z0-9]([-a-z0-9]*[a-z0-9])?'')'\r\n    reason: FailedCreate\r\n    status: \"False\"\r\n    type: Synchronized\r\n  phase: Pending\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/kubevirt/kubevirt/issues/comments/393082033","html_url":"https://github.com/kubevirt/kubevirt/issues/1092#issuecomment-393082033","issue_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/1092","id":393082033,"user":{"login":"slintes","id":1962082,"avatar_url":"https://avatars3.githubusercontent.com/u/1962082?v=4","gravatar_id":"","url":"https://api.github.com/users/slintes","html_url":"https://github.com/slintes","followers_url":"https://api.github.com/users/slintes/followers","following_url":"https://api.github.com/users/slintes/following{/other_user}","gists_url":"https://api.github.com/users/slintes/gists{/gist_id}","starred_url":"https://api.github.com/users/slintes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slintes/subscriptions","organizations_url":"https://api.github.com/users/slintes/orgs","repos_url":"https://api.github.com/users/slintes/repos","events_url":"https://api.github.com/users/slintes/events{/privacy}","received_events_url":"https://api.github.com/users/slintes/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T08:49:01Z","updated_at":"2018-05-30T08:49:01Z","author_association":"MEMBER","body":"The name of the OVM / VM will be as used as hostname and for internal DNS by Kubernetes, and it must not contain a `.`. So  you need to change the name of the OVM. Only lowercase alphanumeric characters and `-` are allowed, the latter not at first or last position."}}
{"actor":{"display_login":"slintes"}}