IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'










0















Facing issue while configuring iSCSI devices, getting this error:



IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


Looks like some kind of kernel hardening error. I cannot fix it with many suggestions I found. And I am of course doing it as a root.



xxxxxx:/tmp # targetcli

targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/backstores/fileio> cd ..

/backstores> cd block

/backstores/block> ls

o- block ...................................................................................................... [Storage Objects: 0]

/backstores/block> create sbd /dev/cluster/sbd

Traceback (most recent call last):


File "/usr/bin/targetcli", line 121, in <module>
main()
File "/usr/bin/targetcli", line 111, in main
shell.run_interactive()
File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 894, in run_interactive
self._cli_loop()
File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 723, in _cli_loop
self.run_cmdline(cmdline)
File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 837, in run_cmdline
self._execute_command(path, command, pparams, kparams)
File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 812, in _execute_command
result = target.execute_command(command, pparams, kparams)
File "/usr/lib/python2.7/site-packages/configshell_fb/node.py", line 1406, in execute_command
return method(*pparams, **kparams)
File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 670, in __init__
self._configure(dev, wwn, readonly)
File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 684, in _configure
self._set_udev_path(dev)
File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 138, in _set_udev_path
fwrite(path, "%s" % udev_path)
File "/usr/lib/python2.7/site-packages/rtslib_fb/utils.py", line 72, in fwrite
with open(path, 'w') as file_fd:
IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


Regards,
Vera










share|improve this question




























    0















    Facing issue while configuring iSCSI devices, getting this error:



    IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


    Looks like some kind of kernel hardening error. I cannot fix it with many suggestions I found. And I am of course doing it as a root.



    xxxxxx:/tmp # targetcli

    targetcli shell version 2.1.fb43
    Copyright 2011-2013 by Datera, Inc and others.
    For help on commands, type 'help'.

    /backstores/fileio> cd ..

    /backstores> cd block

    /backstores/block> ls

    o- block ...................................................................................................... [Storage Objects: 0]

    /backstores/block> create sbd /dev/cluster/sbd

    Traceback (most recent call last):


    File "/usr/bin/targetcli", line 121, in <module>
    main()
    File "/usr/bin/targetcli", line 111, in main
    shell.run_interactive()
    File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 894, in run_interactive
    self._cli_loop()
    File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 723, in _cli_loop
    self.run_cmdline(cmdline)
    File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 837, in run_cmdline
    self._execute_command(path, command, pparams, kparams)
    File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 812, in _execute_command
    result = target.execute_command(command, pparams, kparams)
    File "/usr/lib/python2.7/site-packages/configshell_fb/node.py", line 1406, in execute_command
    return method(*pparams, **kparams)
    File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
    so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
    File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 670, in __init__
    self._configure(dev, wwn, readonly)
    File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 684, in _configure
    self._set_udev_path(dev)
    File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 138, in _set_udev_path
    fwrite(path, "%s" % udev_path)
    File "/usr/lib/python2.7/site-packages/rtslib_fb/utils.py", line 72, in fwrite
    with open(path, 'w') as file_fd:
    IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


    Regards,
    Vera










    share|improve this question


























      0












      0








      0








      Facing issue while configuring iSCSI devices, getting this error:



      IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


      Looks like some kind of kernel hardening error. I cannot fix it with many suggestions I found. And I am of course doing it as a root.



      xxxxxx:/tmp # targetcli

      targetcli shell version 2.1.fb43
      Copyright 2011-2013 by Datera, Inc and others.
      For help on commands, type 'help'.

      /backstores/fileio> cd ..

      /backstores> cd block

      /backstores/block> ls

      o- block ...................................................................................................... [Storage Objects: 0]

      /backstores/block> create sbd /dev/cluster/sbd

      Traceback (most recent call last):


      File "/usr/bin/targetcli", line 121, in <module>
      main()
      File "/usr/bin/targetcli", line 111, in main
      shell.run_interactive()
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 894, in run_interactive
      self._cli_loop()
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 723, in _cli_loop
      self.run_cmdline(cmdline)
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 837, in run_cmdline
      self._execute_command(path, command, pparams, kparams)
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 812, in _execute_command
      result = target.execute_command(command, pparams, kparams)
      File "/usr/lib/python2.7/site-packages/configshell_fb/node.py", line 1406, in execute_command
      return method(*pparams, **kparams)
      File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
      so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 670, in __init__
      self._configure(dev, wwn, readonly)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 684, in _configure
      self._set_udev_path(dev)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 138, in _set_udev_path
      fwrite(path, "%s" % udev_path)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/utils.py", line 72, in fwrite
      with open(path, 'w') as file_fd:
      IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


      Regards,
      Vera










      share|improve this question
















      Facing issue while configuring iSCSI devices, getting this error:



      IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


      Looks like some kind of kernel hardening error. I cannot fix it with many suggestions I found. And I am of course doing it as a root.



      xxxxxx:/tmp # targetcli

      targetcli shell version 2.1.fb43
      Copyright 2011-2013 by Datera, Inc and others.
      For help on commands, type 'help'.

      /backstores/fileio> cd ..

      /backstores> cd block

      /backstores/block> ls

      o- block ...................................................................................................... [Storage Objects: 0]

      /backstores/block> create sbd /dev/cluster/sbd

      Traceback (most recent call last):


      File "/usr/bin/targetcli", line 121, in <module>
      main()
      File "/usr/bin/targetcli", line 111, in main
      shell.run_interactive()
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 894, in run_interactive
      self._cli_loop()
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 723, in _cli_loop
      self.run_cmdline(cmdline)
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 837, in run_cmdline
      self._execute_command(path, command, pparams, kparams)
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 812, in _execute_command
      result = target.execute_command(command, pparams, kparams)
      File "/usr/lib/python2.7/site-packages/configshell_fb/node.py", line 1406, in execute_command
      return method(*pparams, **kparams)
      File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
      so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 670, in __init__
      self._configure(dev, wwn, readonly)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 684, in _configure
      self._set_udev_path(dev)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 138, in _set_udev_path
      fwrite(path, "%s" % udev_path)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/utils.py", line 72, in fwrite
      with open(path, 'w') as file_fd:
      IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'


      Regards,
      Vera







      python linux python-2.7 iscsi






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 22:53









      pushkin

      4,050112752




      4,050112752










      asked Nov 13 '18 at 18:16









      Vera KrasnovaVera Krasnova

      11




      11






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53287214%2fioerror-errno-1-operation-not-permitted-sys-kernel-config-target-core-iblo%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53287214%2fioerror-errno-1-operation-not-permitted-sys-kernel-config-target-core-iblo%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kleinkühnau

          Makov (Slowakei)

          Deutsches Schauspielhaus