Results 1 to 4 of 4

Thread: PXE/AutoYast 15.3 & 15.4

  1. #1

    Default PXE/AutoYast 15.3 & 15.4

    Hey All
    I am trying to do an auto install with openSUSE 15.3 or 15.4 with a specific autoyast template. Now with the exact same template i can install 15.2 with no issues, but i get the same error for 15.3+ so i was wondering is there a massive bug in 15.3/4 or has SUSE completely changed the template for this??

    Error:
    Using and invalid XML document might result in an unexpected behavior, crash or even data loss!

    Details:
    ERROR: Extra element networking in interleave<br>10:0
    ERROR: Element profile failed to validate content

    Below is the snippit from the XML but as mentioned this works in 15.2

    <networking>
    <dns>
    <hostname>server1</hostname>
    <dhcp_hostname config:type="boolean">false</dhcp_hostname>
    <dhcp_resolv config:type="boolean">false</dhcp_resolv>
    <domain>example.com</domain>
    <nameservers config:type="list">
    <nameserver>192.168.1.1</nameserver>
    </nameservers>
    <searchlist config:type="list">
    <search>example.com</search>
    </searchlist>
    </dns>
    <interfaces config:type="list">
    <interface>
    <bootproto>static</bootproto>
    <device>ens192</device>
    <ipaddr>192.168.1.10</ipaddr>
    <netmask>255.255.255.0</netmask>
    <startmode>onboot</startmode>
    <usercontrol>no</usercontrol>
    </interface>
    </interfaces>
    <routing>
    <routes config:type="list">
    <route>
    <destination>default</destination>
    <device>ens192</device>
    <gateway>192.168.1.1</gateway>
    <netmask>255.255.255.0</netmask>
    </route>
    </routes>
    </routing>
    </networking>



    course in the hint it does say to run the jinx command which i actually did and the areas that it complains about are confusing as some of these are key areas like the runlevel etc..

    /tmp/test.xml:178:14: error: element "default" not allowed here; expected element "runlevel"
    /tmp/test.xml:179:34: error: element "services" not allowed here; expected element "runlevel"
    /tmp/test.xml:185:14: error: element "runlevel" incomplete; missing required element "runlevel"
    /tmp/test.xml:187:11: error: element "base" not allowed here; expected the element end-tag or element "do_online_update", "install_recommended", "instsource", "kernel", "packages", "patterns", "post-packages", "post-patterns", "products", "remove-packages", "remove-patterns" or "remove-products"



    Thanks

  2. #2
    Join Date
    Sep 2012
    Posts
    7,661

    Default Re: PXE/AutoYast 15.3 & 15.4

    If you show your full profile definition, someone may be able to spot the problem.

  3. #3

    Default Re: PXE/AutoYast 15.3 & 15.4

    ass requested this is the base XML

    Code:
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE profile>
    <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
      <general>
        <mode>
          <confirm config:type="boolean">false</confirm>
          <final_reboot config:type="boolean">true</final_reboot>
        </mode>
      </general>
      <networking>
        <dns>
          <hostname>DELETED</hostname>
          <dhcp_hostname config:type="boolean">false</dhcp_hostname>
          <dhcp_resolv config:type="boolean">false</dhcp_resolv>
          <domain>DELETED</domain>
          <nameservers config:type="list">
            <nameserver>DELETED</nameserver>
            <nameserver>DELETED</nameserver>
          </nameservers>
          <searchlist config:type="list">
            <search>DELETED</search>
          </searchlist>
        </dns>
        <interfaces config:type="list">
          <interface>
            <bootproto>static</bootproto>
            <device>DELETED</device>
            <ipaddr>DELETED</ipaddr>
            <netmask>DELETED</netmask>
            <startmode>DELETED</startmode>
            <usercontrol>DELETED</usercontrol>
          </interface>
        </interfaces>
        <routing>
          <routes config:type="list">
            <route>
              <destination>default</destination>
              <device>DELETED</device>
              <gateway>DELETED</gateway>
              <netmask>DELETED</netmask>
            </route>
          </routes>
        </routing>
      </networking>
      <ntp-client>
       <ntp_policy>auto</ntp_policy>
       <ntp_servers config:type="list">
        <ntp_server>
         <iburst config:type="boolean">false</iburst>
         <address>DELETED</address>
         <offline config:type="boolean">true</offline>
        </ntp_server>
       </ntp_servers>
       <ntp_sync>systemd</ntp_sync>
       </ntp-client>
      <partitioning config:type="list">
        <drive>
          <device>/dev/sda</device>
          <initialize config:type="boolean">true</initialize>
          <partitions config:type="list">
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <mount>/boot</mount>
              <partition_id config:type="integer">131</partition_id>
              <partition_nr config:type="integer">1</partition_nr>
              <size>1G</size>
              <stripes config:type="integer">1</stripes>
              <stripesize config:type="integer">4</stripesize>
              <subvolumes config:type="list"/>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <format config:type="boolean">false</format>
              <lvm_group>vg00</lvm_group>
              <partition_id config:type="integer">142</partition_id>
              <partition_nr config:type="integer">2</partition_nr>
              <size>max</size>
            </partition>
          </partitions>
          <pesize></pesize>
          <type config:type="symbol">CT_DISK</type>
          <use>all</use>
        </drive>
        <drive>
          <device>/dev/vg00</device>
          <initialize config:type="boolean">true</initialize>
          <partitions config:type="list">
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>root</lv_name>
              <mount>/</mount>
              <size>4G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">swap</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>swap</lv_name>
              <mount>swap</mount>
              <size>8G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>usr</lv_name>
              <mount>/usr</mount>
              <size>8G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>tmp</lv_name>
              <mount>/tmp</mount>
              <size>4G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>var</lv_name>
              <mount>/var</mount>
              <size>4G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>opt</lv_name>
              <mount>/opt</mount>
              <size>4G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>var_log</lv_name>
              <mount>/var/log</mount>
              <size>4G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>var_tmp</lv_name>
              <mount>/var/tmp</mount>
              <size>2G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>var_crash</lv_name>
              <mount>/var/crash</mount>
              <size>2G</size>
            </partition>
            <partition>
              <create config:type="boolean">true</create>
              <filesystem config:type="symbol">ext4</filesystem>
              <format config:type="boolean">true</format>
              <lv_name>home</lv_name>
              <mount>/home</mount>
              <size>2G</size>
            </partition>
          </partitions>
          <type config:type="symbol">CT_LVM</type>
          <use>all</use>
        </drive>
      </partitioning>
      <runlevel>
        <default>3</default>
        <services config:type="list">
          <service>
            <service_name>sshd</service_name>
            <service_status>enable</service_status>
          </service>
        </services>
      </runlevel>
      <software>
        <base>default</base>
        <patterns config:type="list">
          <pattern>base</pattern>
          <pattern>enhanced_base</pattern>
          <pattern>sw_management</pattern>
          <pattern>yast2_basis</pattern>
        </patterns>
        <packages config:type="list">
          <package>lsb-release</package>
        </packages>
      </software>
      <users config:type="list">
        <user>
          <username>root</username>
          <encrypted config:type="boolean">true</encrypted>
          <fullname>root</fullname>
          <gid>0</gid>
          <home>/root</home>
          <shell>/bin/bash</shell>
          <uid>0</uid>
          <user_password>DELETED</user_password>
        </user>
      </users>
      <scripts>
        <chroot-scripts config:type="list">
          <script>
            <filename>cp-resolv.sh</filename>
            <chrooted config:type="boolean">false</chrooted>
            <interpreter>shell</interpreter>
            <notification>Copying resolv.conf into chroot ...</notification>
            <source><![CDATA[
    cp /etc/resolv.conf /mnt/etc
    ]]>
            </source>
          </script>
          <script>
            <filename>foreman.sh</filename>
            <chrooted config:type="boolean">true</chrooted>
            <interpreter>shell</interpreter>
            <notification>Setting up Puppet / Foreman ...</notification>
            <source>DELETED</source>
          </script>
        </chroot-scripts>
      </scripts>
      <keyboard>
        <keymap>english-us</keymap>
      </keyboard>
      <timezone>
        <hwclock>UTC</hwclock>
        <timezone>Etc/UTC</timezone>
      </timezone>
    </profile>

  4. #4

    Default Re: PXE/AutoYast 15.3 & 15.4

    Anyone have a solution for this?? it looks like suse are changing things from 15.2 on but dont actually provide any details from what i can see

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •