OpenWRT in LXC: procd not respecting lxcfs bind mount.

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, linux

調査の方向性

まず OpenWrt LXC コンテナ内で cat /proc/meminfo と ubus call system info を比較し、次に procd の初期化パスと、/proc の読み取り方法を追跡します。lxcfs の bind mount が存在する状態で、procd がコンテナのメモリ、swap、uptime の値を報告すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Trying to figure out a path forward to get OpenWRT running in an LXC container on proxmox and have it report the correct memory/swap/uptime/etc values pulled from /proc.

see: https://www.reddit.com/r/Proxmox/comments/1gbgrky/openwrt_vm_memory_readings_waaaaay_off_and/ for the effect.

On the latest versions of proxmox, lxcfs should be automatically mounted to /proc in any container. I can see this when logged in to SSH because cat /proc/meminfo returns the values I'd expect to see in the contianer (2g ram) but ubus call system info reports the 92GB of my server.

I apologize, I'm not familiar with how this is put together, but I've been doing some digging through the code. I suspect that we're dealing with a race condition where procd is iniitalizing before the bind mount is complete, opening the file handle, and then keeping it open. I could be way off, though. Any assistance would be appreciated.

主要言語
C
スター
13
フォーク
49
平均マージ
11日 12時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openwrt/procd のほかの issue

openwrt/procd の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。