XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Cannot create SMB ISO repository on new XOA

    Scheduled Pinned Locked Moved Management
    29 Posts 8 Posters 7.9k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fitzgeraldtech @Danp
      last edited by

      @Danp thank you! Hopefully there is a quick resolution to the issue. I'd love to get this up and going. In the mean time, I'll try loading the ISO's locally to one of my machines for an install. Just a bit more tedious this way.

      1 Reply Last reply Reply Quote 0
      • C Offline
        CodeMercenary
        last edited by

        I have this same issue with NFS ISO stores as well. Fill in all the information and the create button never appears in the summary section like it should. Bug is not limited to SMB ISO storage.

        Tristis OrisT 1 Reply Last reply Reply Quote 0
        • Tristis OrisT Offline
          Tristis Oris Top contributor @CodeMercenary
          last edited by

          @CodeMercenary do you have access rights for that nfs? It work for me on many hosts.

          1 Reply Last reply Reply Quote 0
          • C Offline
            CodeMercenary
            last edited by

            I take that to mean there is something that happens behind the scenes to verify the connection is good before the Connect button appears. Is that right?

            I set it up to allow connections without authentication and I have confirmed I can get to it from a Windows system. I will try to mount it manually to confirm I have access.

            Tristis OrisT 1 Reply Last reply Reply Quote 0
            • Tristis OrisT Offline
              Tristis Oris Top contributor @CodeMercenary
              last edited by

              @CodeMercenary if nothing happens\button not appear, you can check for errors at browser dev tools. Or maybe anyone else will reproduce that.

              1 Reply Last reply Reply Quote 0
              • C Offline
                CodeMercenary
                last edited by

                I'm a bit embarrassed to say that I'm a software engineer and I do mostly web development, so I should have naturally checked that myself.

                That server is at home at the moment as I test XCP-NG as a replacement for VMware at my office and it's in a room my nephew will be sleeping in for the next week or so, so I likely can't check this tonight. A bit too hot and too loud to be running while someone is sleeping in the room.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shareefj
                  last edited by

                  I'm seeing this same issue, there is no "Create" button appearing in the Summary pane.

                  What format is the SMB Server address expected to be in? Windows style as with the OP?

                  If I look at the browser dev tools, it seems to be spitting out formatting errors relating to the server string:

                  index.js:525 [React Intl] Error formatting the default message for: "newSrSmbAddressPlaceHolder"
                  SyntaxError: Expected "\\#", "\\\\", "\\u", "\\{", "\\}", "{", [^{}\\\0-\x1F\x7f \t\n\r], end of input or whitespace but "\\" found.
                  J @ index.js:525
                  
                  S 1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    @MathieuRA that's probably a good hint 🙂

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      shareefj @shareefj
                      last edited by shareefj

                      As a workaround, I used the command line to create the store:

                      xe sr-create host-uuid=<your_host_uuid> content-type=iso type=iso shared=true name-label="SMB ISO SR" device-config:location="\\\\10.10.10.139\\share" device-config:type=cifs device-config:username=<username>
                      

                      Note the escaped backslash. And in my case I didn't need an SMB password but the command line insisted on me providing a username.

                      And as a side note, getting the command line wrong still seems to end up creating broken SR entries that need to be cleaned.

                      MathieuRAM 1 Reply Last reply Reply Quote 0
                      • MathieuRAM Offline
                        MathieuRA Vates 🪐 XO Team @shareefj
                        last edited by

                        Hi 🙂

                        The issue for the SMB ISO should be fixed on the branch fix-iso-smb.

                        BTW, in your browser dev tools, you will see this error again as it's not related to the bug, at least for the creation button that doesn't appear.

                        index.js:525 [React Intl] Error formatting the default message for: "newSrSmbAddressPlaceHolder"
                        SyntaxError: Expected "\\#", "\\\\", "\\u", "\\{", "\\}", "{", [^{}\\\0-\x1F\x7f \t\n\r], end of input or whitespace but "\\" found.
                        J @ index.js:525
                        

                        Thanks

                        F 1 Reply Last reply Reply Quote 1
                        • F Offline
                          fitzgeraldtech @MathieuRA
                          last edited by

                          @MathieuRA Thank you for your efforts to get this fixed in such a timely manor! Would you mind pointing me in the direction of any sort of help document that explains how to update my XOA to the branch for fix-iso-smb? This would be my first time doing so. Thank you in advance!

                          MathieuRAM 2 Replies Last reply Reply Quote 0
                          • MathieuRAM Offline
                            MathieuRA Vates 🪐 XO Team @fitzgeraldtech
                            last edited by

                            @fitzgeraldtech

                            If you are using XO from source, you can follow this documentation.

                            Instead of git checkout . use git checkout fix-iso-smb

                            1 Reply Last reply Reply Quote 0
                            • MathieuRAM Offline
                              MathieuRA Vates 🪐 XO Team @fitzgeraldtech
                              last edited by

                              @fitzgeraldtech

                              The fix is now available on the master branch. Commit: 24a75ba

                              MathieuM 1 Reply Last reply Reply Quote 1
                              • MathieuM Offline
                                Mathieu @MathieuRA
                                last edited by

                                @MathieuRA Hello. Many thanks for the fix. I updated to the latest commit (73ad9) and it fix indeed the SMB share creation button.
                                But it is still missing when trying to add a NFS SR or a NFS ISO SR.

                                I also check with XOA (latest release), the issue is also there.

                                No biggies as we can add NFS share through xsconsole or xe-cli, but would be nice to be able to do that from XO as well.

                                Thanks !

                                Tristis OrisT 1 Reply Last reply Reply Quote 0
                                • Tristis OrisT Offline
                                  Tristis Oris Top contributor @Mathieu
                                  last edited by

                                  @Mathieu still nobody confirmed problem with NFS. So, did you press the scan button?

                                  MathieuM 1 Reply Last reply Reply Quote 0
                                  • MathieuM Offline
                                    Mathieu @Tristis Oris
                                    last edited by

                                    @Tristis-Oris 😲 🙇
                                    I'm completely dumb, I missed the scan button...

                                    Once you scan it, it is working alright.

                                    Sorry for the trouble.

                                    1 Reply Last reply Reply Quote 0
                                    • Tristis OrisT Offline
                                      Tristis Oris Top contributor
                                      last edited by

                                      this button indead not very visible. Maybe it's worth to make it more like usual button? Paint to blue, or move to other side.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post