pai icon indicating copy to clipboard operation
pai copied to clipboard

When I run requirement.sh,error occurred

Open mtzfei opened this issue 6 years ago • 5 comments

Organization Name:

Short summary about the issue/question: 微信图片_20200525140932

Brief what process you are following: when i run "/bin/bash requirement.sh -m /home/ouc/master.csv -w /home/ouc/worker.csv -c /home/ouc/config",error occurred

How to reproduce it:

OpenPAI Environment:

  • OpenPAI version:v1.0.0
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.):
  • Others:

Anything else we need to know:

mtzfei avatar May 25 '20 06:05 mtzfei

Thanks,I already know the problem

mtzfei avatar May 25 '20 07:05 mtzfei

Thanks,I already know the problem

I met the same problem. How do you solve it?

xuluanlin avatar May 25 '20 09:05 xuluanlin

Thanks,I already know the problem

I met the same problem. How do you solve it?

Modify "environment- check.yml ”Network card “ansible_control_host_address: "{{ hostvars[inventory_hostname]['ansible_eno1']['ipv4']['address'] }}"”

mtzfei avatar May 25 '20 09:05 mtzfei

I think the wide available solution is to modify GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" in /etc/default/grub, and then sudo grub-mkconfig -o /boot/grub/grub.cfg. After that, the network interface name should be back to old school eth0

k1ngcyk avatar Jun 02 '20 01:06 k1ngcyk

@ydye @hzy46

for the default ip address, https://github.com/microsoft/pai/blob/55a0b862bd897759f6c80aeb849be1fdde721406/contrib/kubespray/environment-check.yml#L11

could you check whether the following works?

{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] | default(hostvars[inventory_hostname]['ansible_all_ipv4_addresses'][0]) }}

abuccts avatar Jun 02 '20 09:06 abuccts