/srv/irclogs.ubuntu.com/2015/07/01/#launchpad-dev.txt

=== maozhou__ is now known as maozhou
maozhouHow to delete a package on launchpad?01:23
wgrantmaozhou: From a PPA or from a primary archive?01:24
maozhoufrom a primary archive01:25
wgrantmaozhou: Use the remove-package tool from lp:ubuntu-archive-tools01:25
blrwgrant: thanks, had some vague recollection that secure_codebrowse_root was wrong01:26
maozhouwgrant: ok ,thank you.01:26
wgrantblr: Shall we deploy?01:33
blrwgrant: sounds good.01:34
blrwgrant: oh, sourcedeps.cache presumably is generated?01:34
wgrantblr: Yep, update sourcedeps.conf, run update-sourceode, and sourcedeps.cache will be automatically updated.01:34
maozhouwgrant: What's the parameter of "-A ARCHIVE" in remove-package ?01:48
wgrantmaozhou: For a primary archive it is the name of the distro. See ARCHIVE_REFERENCE_TEMPLATES in lib/lp/soyuz/model/archive.py.02:14
maozhouwgrant: I ran "LP_DISABLE_SSL_CERTIFICATE_VALIDATION=1 ./remove-package  -m "dput by name ubuntu,so the kord package can't dput" -d ubuntu -A ubuntu -s utopic webkitgtk" , but It's error . Error message:"lazr.restfulclient.errors.Unauthorized: HTTP Error 401: Unauthorized02:21
maozhou"02:21
wgrantmaozhou: The user that you're authenticated as may not have permission to remove packages from the primary archive.02:22
wgrantmaozhou: Try `edit-acl -l dev -A ubuntu -t admin -p admins --pocket Release add` first02:23
wgrantTo give the ~admins team admin rights on the release pocket of the Ubuntu primary archive.02:23
maozhouwgrant: After running  `edit-acl -l dev -A ubuntu -t admin -p admins --pocket Release add` ,  then delete the package, the same error message.02:31
wgrantmaozhou: Is the user as whom your launchpadlib is authenticated a member of ~admins?02:32
maozhouwgrant: how to see my launchpadlib is authenticated a member of ~admins?03:00
wgrantmaozhou: Which user is your launchpadlib authenticated as?04:40
maozhouwgrant: admin@canonical.dev06:11
wgrantmaozhou: That user doesn't exist in the sampledata.06:12
maozhouwgrant: I find username is "username: System-wide: Ubuntu (LaunchpadServer)@https://api.launchpad.net/"  by running seahorse.06:19
wgrantmaozhou: That doesn't tell you which user it is.06:20
wgrantWhat does "lp.me" say?06:21
wgrantWhere lp is a relevant launchpadlib Launchpad object.06:21
maozhouwhere is lp.me?06:22
wgrantIn your favourite Launchpad API client.06:23
wgranteg. lp-shell06:23
maozhouI can't find any file which named lp-shell or  lp.me06:26
wgrantlp.me is a Python expression that you can evaluate inside lp-shell. lp-shell is a wrapper around launchpadlib.06:27
maozhouBut ,how to find the lp-shell?06:30
wgrantwgrant@lamuella:~$ apt-cache search lp-shell06:30
wgrantlptools - Tools for working with Launchpad06:30
maozhouIn folder ubuntu-archive-tools?06:32
wgrantNo, it's an Ubuntu package.06:32
maozhouwgrant: print lp.me in lp-shell , It's output "https://api.launchpad.net/1.0/~maozhou"06:53
wgrantmaozhou: That's production06:54
wgrantlp-shell dev devel06:54
maozhouHow to get that package? I installed it by running "apt-get install lptools", is it incorrect?06:57
wgrantThat's correct.06:57
wgrantBut it connects to production by default.06:57
wgrantYour instance is not running at launchpad.net, as far as I am aware.06:57
maozhouBut how to make it to connect to dev devel ?07:00
wgrant"lp-shell dev devel"07:04
=== mup_ is now known as mup
maozhouwgrant: running  lp-shell dev devel  can't print  lp.me,http://imgur.com/eEDwMSl07:31
wgrantmaozhou: If you don't have a valid certificate set up for your Launchpad instance, you'll need to use LP_DISABLE_SSL_CERTIFICATE_VALIDATION.07:33
maozhouwgrant: Yes I ran it as "LP_DISABLE_SSL_CERTIFICATE_VALIDATION=1  lp-shell dev devel"07:35
wgrantmaozhou: Are you sure?07:35
maozhouwgrant: Yes , I'm sure07:39
maozhouhttp://imgur.com/7Q2MdMU07:39
wgrantmaozhou: Which version of python-lazr.restfulclient is installed where you're running lp-shell?07:40
maozhouwgrant: The version of lptools is "0.0.1~bzr34-1"07:41
wgrantmaozhou: Oh, it's a precise host?07:50
maozhouwgrant: The version of python-lazr.restfulclient is 0.12.007:50
maozhouwgrant: Yes , it's 12.04.5  64bit OS.07:51
wgrantmaozhou: That environment variable was only added in 0.13.0. How were you running the scripts from lp:ubuntu-archive-tools?07:53
wgrantThat can't have been from that host.07:53
maozhouwgrant: which scripts of ubuntu-archive-tools ?  I ran most of them succeed07:58
wgrantmaozhou: But they also wouldn't support LP_DISABLE_SSL_CERTIFICATE_VALIDATION.07:58
wgrantSo I don't see how they could have connected.07:58
maozhouwgrant: But I can run "LP_DISABLE_SSL_CERTIFICATE_VALIDATION=1   ./manage-chroot -l dev -s utopic -a i386 -f chroot-ubuntu-utopic-i386.tar.bz2 set" and "LP_DISABLE_SSL_CERTIFICATE_VALIDATION=1 ./queue  -l dev -s utopic  accept"  succeed.08:01
wgrantmaozhou: And your copy of ubuntu-archive-tools is also running on that precise machine, and is not patched in any way?08:03
maozhouwgrant: Yes , I copyed the folder ubuntu-archive-tools   from another machine, and is not patched in any way.08:06
wgrantmaozhou: Does it succeed without the environment variable set?08:10
wgrantOn precise it should not be checking the environment variable at all.08:10
maozhouwgrant: Yes, it succeed without the environment variable set.08:11
wgrantmaozhou: You'll need to debug this yourself.08:14
wgrantmaozhou: lp-shell won't accept LP_DISABLE_SSL_CERTIFICATE_VALIDATION on precise, though.08:14
wgrantYou need trusty for that.08:14
maozhouwgrant: ok08:16
maozhouwgrant:  If update python-lazr.restfulclient to 0.13.0 ,is it efficient?08:18
wgrantmaozhou: You may also need a new launchpadlib.08:18
maozhouwgrant: ok, thank you.08:21
maozhouwgrant: After running "LP_DISABLE_SSL_CERTIFICATE_VALIDATION=1 ./remove-package  -m "dput by name ubuntu,so the kord package can't dput" -d ubuntu -A ubuntu -s utopic webkitgtk", it's link to "https://launchpad.net/+authorize-token?oauth_token=KTL2Pdv4T3FsZn4l5zBT&allow_permission=DESKTOP_INTEGRATION",not link to launchpad.dev,is it the reason of "HTTP Error 401:unauthorized"?09:10
cjwatsonmaozhou: remove-package -l dev09:22
cjwatsonOtherwise it defaults to launchpad.net production.09:22
maozhoucjwatson:  Oh, yes , that's the reason.  the script run succedd, but the package  is still exits.09:33
cjwatsonCheck the publishing history to see if the removal happened (https://launchpad.dev/ubuntu/+source/webkitgtk/+publishinghistory)09:35
cjwatsonIf so, you just need to run the publisher.09:35
cjwatsonblr,wgrant: quick tweak to the new UI on Product:+configure-code - https://code.launchpad.net/~cjwatson/launchpad/project-default-git-location/+merge/26348609:37
wgrantcjwatson: Good catch.09:38
cjwatsonwgrant: thanks09:42
cjwatsonwgrant: did you want to check that the backfilling on staging is sensible before FDT, or are you already confident in that?09:44
cjwatsonseems to complete in time at least09:44
wgrantcjwatson: a) it's fine09:45
wgrantb) i'm doing it hot :)09:45
wgrantKEY SHARE ftw.09:45
cjwatsonoh yes I see the other channel now09:45
maozhoucjwatson:  The removal happened (https://launchpad.dev/ubuntu/+source/webkitgtk/+publishinghistory) , but after running publisher , the package is still exits.09:46
cjwatsonStill exists in what sense?09:49
cjwatsonRemember that it may still be in the published archive if the same package is also published in other suites.09:49
wgrantAnd it will continue exist in pool/ until process-death-row has been run.09:50
cjwatsonAlso, if utopic is "Current Stable Release" or "Supported", you can't actually remove packages from it.09:50
cjwatsonYour removal message makes no sense to me, so I'm not actually sure why you're trying to do thi09:51
cjwatsons09:51
maozhoucjwatson:  It  still in published archive, but there is no same package published in other suites, and the status of utopic is "Active Development"09:56
cjwatsonmaozhou: When you say that it's still in the archive, do you mean that it's still in the Packages and Sources index files under dists/utopic/, or that the files are still in pool/, or both?09:58
cjwatsonblr: Do we maybe want to restrict Product.inferred_vcs to only consider IBranchCollection(self).withLifecycleStatus(DEFAULT_BRANCH_STATUS_IN_LISTING), i.e. branches that would show up in default branch listings?09:58
wgrantThat's potentially perilous in terms of query performance.09:59
wgrantIt's likely that code.launchpad.net/launchpad's load time would double in that case.10:00
cjwatsonThere isn't a decent index on that?10:00
wgrantMost statuses are shown.10:00
wgrantAnd active statuses dominate the table.10:00
wgrantPostgres would probably judge index use unwise.10:00
* cjwatson tests10:01
wgrantI'm also not sure it's worth it now that the default can be explicitly selected.10:03
wgrantBut if it's cheap, then sure.10:04
maozhoucjwatson: In pool and "https://launchpad.dev/ubuntu/utopic/+builds"10:04
cjwatson+builds will never go away.  If it was built, that's historical fact.10:09
cjwatsonAs for pool, what wgrant said; that only goes away after process-death-row has run.10:09
cjwatsonwgrant: http://paste.ubuntu.com/11803804/10:10
cjwatson(inferred_vcs is using is_empty())10:11
wgrantcjwatson: Right, so it's as I suspected. In the case that there are no active branches, it will scan the entire set.10:11
wgrantMost projects don't have terribly many, I will concede.10:12
cjwatsonWell, I'm not sure we know that from this example; the planner might have noticed that it's quickest this way for launchpad.10:12
* cjwatson tries to think of a project with no branches10:13
cjwatsonOr rather only inactive ones10:13
maozhouWhere is process-death-row?10:14
cjwatsonmaozhou: scripts/10:15
cjwatsonOh, there's no index on Branch.lifecycle_status10:15
cjwatsonWeird10:15
wgrantpostgres will relatively rarely use indices on large sets.10:15
wgrantThat is, where it would have to perform many scans.10:16
maozhoucjwatson: +builds will never go away? If I delete a package, can I dput the same version of package to this test launchpad server?10:18
cjwatsonmaozhou: No.10:23
cjwatsonmaozhou: Change the version.  Versions are cheap.10:23
cjwatsonAdd "build1" to the end or something.10:23
cjwatsonmaozhou: This is why I was asking what you were trying to do, since I suspected it might be something impossible :-)10:23
cjwatsonIt doesn't matter if you've deleted the package; Launchpad will never let you reuse the same package/version with different contents within the same archive.10:24
cjwatsonwgrant: Do you know why so many more projects use EMBARGOED on dogfood than on wherever you tested?  The DF count is 11310:33
wgrantcjwatson: AND active10:34
wgrantNobody actually deliberately chooses it.10:34
cjwatsonAha10:34
maozhoucjwatson: Ok , I understand  ,thank you .10:35
=== danilos` is now known as danilos
=== Nigel__ is now known as G
=== Ursinha_ is now known as Ursinha
=== jelmer_ is now known as jelmer
=== \b is now known as benonsoftware
blrcjwatson: hmm, not something I considered but that does sound sensible - assuming we add an index to lifecycle, would it be worth it?20:51
cjwatsonblr: I think wgrant has persuaded me that it may not be worth the trouble21:21
wgrant:)23:02

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!