[ClusterLabs Developers] bundle/rkt: bundle failed to validate content

Valentin Vidic Valentin.Vidic at CARNet.hr
Tue Jul 18 16:22:40 EDT 2017


On Mon, Jul 17, 2017 at 09:44:13PM +0200, Valentin Vidic wrote:
> The first question I have is if the xml changes are ok for the
> new container type?  Do I need to modify both resources-2.8.rng
> and resources-2.9.rng or perhaps create a new version?

Seems there is a problem with the modified xml I sent.  I can now
create docker or rkt bundles, but not both at the same time. Adding
the first one works (either docker or rkt), for example:

      <bundle id="httpd-bundle-a">
        <rkt image="pcmktest/http" options="--memory=100M" replicas="2" replicas-per-host="2"/>
        <network host-netmask="24" host-interface="ens3" ip-range-start="192.168.122.141">
          <port-mapping id="httpd-port" port="80"/>
        </network>
        <storage>
          <storage-mapping source-dir-root="/var/local/containers" target-dir="/var/www/html" id="httpd-root" options="readOnly=false"/>
          <storage-mapping source-dir-root="/var/log/pacemaker/bundles" target-dir="/etc/httpd/logs" id="httpd-logs" options="readOnly=false"/>
        </storage>
        <primitive class="ocf" id="httpd" provider="heartbeat" type="apache">
          <operations>
            <op id="httpd-monitor-interval-10" interval="10" name="monitor" timeout="20s"/>
            <op id="httpd-start-interval-0s" interval="0s" name="start" timeout="40s"/>
            <op id="httpd-stop-interval-0s" interval="0s" name="stop" timeout="60s"/>
          </operations>
        </primitive>
      </bundle>

but adding the second one produces the following error:

Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      Diff: --- 0.85.31 2
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      Diff: +++ 0.85.32 (null)
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      +  /cib:  @num_updates=32
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++ /cib/configuration/resources:  <bundle id="httpd-bundle-b"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  <docker image="pcmktest:http" options="--log-driver=journald" replicas="2" replicas-per-host="2"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  <network host-netmask="24" host-interface="ens3" ip-range-start="192.168.122.131">
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                    <port-mapping id="httpd-port" port="80"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  </network>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  <storage>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                    <storage-mapping source-dir-root="/var/local/containers" target-dir="/var/www/html" id="httpd-root" options="rw"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                    <storage-mapping source-dir-root="/var/log/pacemaker/bundles" target-dir="/etc/httpd/logs" id="httpd-logs" options="rw"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  </storage>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  <primitive class="ocf" id="httpd" provider="heartbeat" type="apache">
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                    <operations>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                      <op id="httpd-monitor-interval-10" interval="10" name="monitor" timeout="20s"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                      <op id="httpd-start-interval-0s" interval="0s" name="start" timeout="40s"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                      <op id="httpd-stop-interval-0s" interval="0s" name="stop" timeout="60s"/>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                    </operations>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                  </primitive>
Jul 18 20:16:01 [29877] sid1        cib:     info: cib_perform_op:      ++                                </bundle>
Jul 18 20:16:01 [29877] sid1        cib:    error: xml_log:     Extra element network in interleave
Jul 18 20:16:01 [29877] sid1        cib:    error: xml_log:     Element bundle failed to validate content
Jul 18 20:16:01 [29877] sid1        cib:    error: xml_log:     Element resources has extra content: primitive
Jul 18 20:16:01 [29877] sid1        cib:  warning: cib_perform_op:      Updated CIB does not validate against pacemaker-2.9 schema/dtd

And idea what could be the problem here?

-- 
Valentin




More information about the Developers mailing list