From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id C105D71C29 for ; Wed, 30 Jun 2021 09:58:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id ACB1816DFC for ; Wed, 30 Jun 2021 09:57:58 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id C76B416DEE for ; Wed, 30 Jun 2021 09:57:57 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 9398842FBB for ; Wed, 30 Jun 2021 09:57:57 +0200 (CEST) To: pve-devel@lists.proxmox.com References: <3f41ada2-55d3-5bd3-3081-2035ed7d44e8@proxmox.com> From: Fabian Ebner Message-ID: Date: Wed, 30 Jun 2021 09:57:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.239 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_ASCII_DIVIDERS 0.8 Spam that uses ascii formatting tricks KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -0.001 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: Re: [pve-devel] Proxmox 7.0 Beta - Ceph "a password is required" error messages? X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 07:58:28 -0000 Am 29.06.21 um 01:19 schrieb Victor Hooi: > Hi, > > Yes, I can confirm that file exists on my system: > > root@angusmtv-vm01:/etc/sudoers.d# cat ceph-osd-smartctl >> ## allow ceph-osd (which runs as user ceph) to collect device health >> metrics > > > ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/* >> ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/* > > > This was a fresh install of Proxmox 7.0 beta, with Ceph, I haven't really > made any changes outside of setting the Ceph keyring, so that ceph-volume > batch would work: > > ceph auth get client.bootstrap-osd > >> /var/lib/ceph/bootstrap-osd/ceph.keyring > > > The nvme-cli package was *not* installed: > > # dpkg -s nvme-cli >> dpkg-query: package 'nvme-cli' is not installed and no information is >> available >> Use dpkg --info (= dpkg-deb --info) to examine archive files. > > > I've just installed it - should that make those errors go away? > Yes. I now debugged this a bit further: Ceph uses 'sudo nvme ...' when executing the command, but if 'nvme' can't be found in the PATH, the sudoers rule does not seem to apply, because it is for '/usr/sbin/nvme'. Seems like something with sudo changed too. Given the same sudoers file and not having 'nvme-cli' installed, for an unprivileged user using sudo nvme qemu smart-log-add --json /dev/sdc and Ctrl+D-ing the password prompt results in a notification in PVE 7.0, but not in PVE 6.4. > Should we install nvme-cli by default then? > It is in Recommends for the ceph package, but when installing via the API we use 'apt --no-install-recommends' for some reason. Maybe somebody else knows why? > Out of curiosity - where do you see the hardware status via Ceph > I think you can use ceph device ls to get the list of devices and then ceph device get-health-metrics > Thanks > Victor > > On Mon, Jun 28, 2021 at 5:54 PM Fabian Ebner wrote: > >> Am 25.06.21 um 03:31 schrieb Victor Hooi: >>> Hi, >>> >>> I've setup a new Ceph cluster with the Proxmox 7.0 beta >>> >>> I'm getting notification emails like this: >>> >>> ceph : a password is required ; PWD=/ ; USER=root ; COMMAND=nvme intel >>>> smart-log-add --json /dev/nvme0n1 >>> >>> >>> Do you know if this is expected behaviour, or what it means? Is this some >>> kind of new logging in Ceph 16 or Proxmox 7? >>> >>> Thanks, >>> Victor >>> _______________________________________________ >>> pve-devel mailing list >>> pve-devel@lists.proxmox.com >>> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >>> >>> >> >> Hi, >> >> in addition to what Dominik said: Is nvme-cli installed? >> >> Best Regards, >> Fabi >> >> >> _______________________________________________ >> pve-devel mailing list >> pve-devel@lists.proxmox.com >> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >> >> > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel > >