X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FA20383E806 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1592126759; bh=P8upLvpTIEvAVk0hTELUIFt4JrCNW6BQhQns4cteadQ=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=HBik1IEWMb0yReyAsdVCp/5G/tqGDt8mO/am+StOn27HRquFwCBZFasmULhVUoJgo U1nhWEU5QbCyrLSAH6p4dh7ifMxDiUK4Eq6/5l5Wt2Rp/xQf5siYzvFnWC9W8ldRzm PHg6fm3R7uE1XofRH2sDDSjpqpqkoQmVISk7+cdg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2B9C4385DC00 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IJr6z2/HviPvgEWPkMgQKEhuCYTvjqscIGbGXXZou3A=; b=NlmGKoTT7epoJFELRP1apQkZRQigm86thUrJYg9YoXjMdk428ODUC3eoju9fgwTEq1 dJF87gLShKKjdIx12yawnAurY8KlKqBCEjoEjc5BRCS1S9gvA1PQPfQ7QDPlsrhM41jD qhCGA2q5NwMdcd88JbIS3+nWACZ/iEfG8KS5/KzIzp8afc8CqTuN0u9PFx73x2UqKcr/ QHfD5TrIpWjrWlNbXZ/g8c6S96nyghm8tD1cVe3Yn11AJRyDXZnu6E8EyMuCZXuxGvDi FtjglEXLNg86pbG8aVg9bIu9guhH+U75Xlcnr3tWOxh05Difiiw+PGXDQ/7xHTFqLPhC O5cA== X-Gm-Message-State: AOAM530DYtCZgPINqcXZXprP+EotQwG2sue18YfQThZDvtQboNg1eAPB jQkHX2yta/ixOISRqsctVqqFJeHV X-Google-Smtp-Source: ABdhPJwg6h9Kzk4XBlsA/L1KzJYLPfK5mIEGPm2SOAevE6+nUVQzHI+zQqoVZWin6Drq6hkT34viMg== X-Received: by 2002:a1c:b654:: with SMTP id g81mr7469111wmf.128.1592126753945; Sun, 14 Jun 2020 02:25:53 -0700 (PDT) Subject: Re: "kubectl exec" in Cygwin gets "Upgrade request required", but not in cmd shell To: David Karr References: Message-ID: Date: Sun, 14 Jun 2020 11:25:52 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Language: it X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Marco Atzeri via Cygwin Reply-To: Marco Atzeri Cc: The Cygwin Mailing List Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 05E9QQTp016086 On 14.06.2020 08:12, David Karr wrote: > > > On Sat, Jun 13, 2020 at 10:31 PM Marco Atzeri via Cygwin wrote: > > On 13.06.2020 20:53, David Karr via Cygwin wrote: > > I've been using kubectl in Cygwin on Windows 10 for quite a while, to > > communicate to our in-house k8s clusters. I often use "kubectl > exec" to > > open a shell in a container or directly execute a shell command. > This has > > worked perfectly fine for a long time. > > > > A couple of days ago, I discovered that all of these attempts > were failing > > with "Upgrade request required".  I hadn't upgraded kubectl or > Cygwin in > > quite a while. I doubt our clusters had a k8s upgrade, but it's > entirely > > possible. > > > > A colleague of mine has a very similar desktop configuration > (Windows 10, > > Cygwin), and he's not seeing this symptom. > > > > I noticed that when I ran "kubectl exec" with max verbosity, it > shows the > > resulting "curl" command that it runs. I tried that resulting > command, and > > it results in the same response. I then tried updating my Cygwin > tools and > > retesting, no change. > > > > I then took the entire resulting "kubectl exec" command line and > ran it in > > a "cmd" shell.  No problem at all.  No error. > > > > I know I haven't provided much useful information yet. I wanted > to get an > > initial response before I started providing those diagnostics. Is > there a > > clear issue here that I'm not aware of? > > -- > > from where is kubectl coming from ? > > In cygwin I found only a kubectl.py in the ansible package > > > It's from here: > https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-windows > . so it is NOT a cygwin program. If the warning is coming about curl, it is likely that using from cygwin you are using the cygwin curl and from CMD the windows one $ which -a curl /usr/bin/curl /cygdrive/c/WINDOWS/system32/curl $ /cygdrive/c/WINDOWS/system32/curl -V curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL Release-Date: 2017-11-14, security patched: 2019-11-05 Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL $ /usr/bin/curl -V curl 7.66.0 (x86_64-pc-cygwin) libcurl/7.66.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.0.4) libssh/0.8.7/openssl/zlib nghttp2/1.37.0 Release-Date: 2019-09-11 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp Features: AsynchDNS brotli Debug GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP TrackMemory UnixSockets the support Forum https://discuss.kubernetes.io/ is probably the most indicate place for guidance Regards Marco -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple