{getOsHumanName(vm.getIn(['os', 'type']))}
@@ -327,30 +318,7 @@ class OverviewCard extends React.Component {
)
)
}
-
- { !isEditing && (
- <>
-
-
-
- { lastEvents.length === 0 && {msg.noEventsFound()}}
- { lastEvents.map(({ id, time, description, severity }) => (
- {new Date(time).toLocaleString(locale)} {description}}>
-
-
-
- {description}
-
-
-
- ))
- }
-
- >
- )}
- >
+
)
}}
@@ -368,13 +336,10 @@ OverviewCard.propTypes = {
operatingSystems: PropTypes.object.isRequired, // deep immutable, {[id: string]: OperatingSystem}
userMessages: PropTypes.object.isRequired,
templates: PropTypes.object.isRequired,
- lastEvents: PropTypes.array,
saveChanges: PropTypes.func.isRequired,
- goToEventsPage: PropTypes.func.isRequired,
msg: PropTypes.object.isRequired,
- locale: PropTypes.string.isRequired,
}
export default connect(
@@ -385,10 +350,8 @@ export default connect(
userMessages: state.userMessages,
templates: state.templates,
isEditable: vm.get('canUserEditVm'),
- lastEvents: toJS(state.userMessages.getIn(['lastEvents', vm.get('id')], [])),
}),
- (dispatch, { vm }) => ({
+ (dispatch) => ({
saveChanges: (minimalVmChanges, correlationId) => dispatch(editVm({ vm: minimalVmChanges }, { correlationId })),
- goToEventsPage: () => dispatch(push(`/vm/${vm.get('id')}/events`)),
})
)(withMsg(OverviewCard))
diff --git a/src/components/VmDetails/cards/OverviewCard/style.css b/src/components/VmDetails/cards/OverviewCard/style.css
index 8ed825c56..6111c3b04 100644
--- a/src/components/VmDetails/cards/OverviewCard/style.css
+++ b/src/components/VmDetails/cards/OverviewCard/style.css
@@ -2,31 +2,6 @@
* Styles for the Overview Card
*/
-.bold {
- font-weight: var(--pf-global--FontWeight--bold);
- }
-
- .fullWidth {
- width: 100%;
-}
-
-.event {
- display: flex;
- /* event text and time label have different height */
- align-items: center;
-}
-
-.eventText {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
-}
-
-
-.event :global(.pf-c-label) {
- margin-right: 5px;
-}
-
.operating-system-label {
position: absolute;
top: 0;
@@ -36,9 +11,7 @@
.vm-info {
padding: 15px;
- flex-grow: 1;
- display: flex;
- flex-direction: column;
+ flex-grow: 1
}
.vm-name {
@@ -84,13 +57,13 @@
}
.os-icon {
- padding: 15px;
+ padding: 15px;
}
.container {
display: flex;
overflow: visible;
- flex-flow: row nowrap;
+ flex-flow: row wrap;
}
.pool-vm-label {
diff --git a/src/constants/index.js b/src/constants/index.js
index 9f44e2960..168810d94 100644
--- a/src/constants/index.js
+++ b/src/constants/index.js
@@ -5,13 +5,11 @@ export const ACTION_IN_PROGRESS_START = 'ACTION_IN_PROGRESS_START'
export const ACTION_IN_PROGRESS_STOP = 'ACTION_IN_PROGRESS_STOP'
export const ADD_ACTIVE_REQUEST = 'ADD_ACTIVE_REQUEST'
export const ADD_DISK_REMOVAL_PENDING_TASK = 'ADD_DISK_REMOVAL_PENDING_TASK'
-export const ADD_LAST_VM_EVENTS = 'ADD_LAST_VM_EVENTS'
export const ADD_NETWORKS_TO_VNIC_PROFILES = 'ADD_NETWORKS_TO_VNIC_PROFILES'
export const ADD_SNAPSHOT_ADD_PENDING_TASK = 'ADD_SNAPSHOT_ADD_PENDING_TASK'
export const ADD_SNAPSHOT_REMOVAL_PENDING_TASK = 'ADD_SNAPSHOT_REMOVAL_PENDING_TASK'
export const ADD_SNAPSHOT_RESTORE_PENDING_TASK = 'ADD_SNAPSHOT_RESTORE_PENDING_TASK'
export const ADD_VM_NIC = 'ADD_VM_NIC'
-export const ADD_VM_EVENTS = 'ADD_VM_EVENTS'
export const ADD_USER_MESSAGE = 'ADD_USER_MESSAGE'
export const APP_CONFIGURED = 'APP_CONFIGURED'
export const AUTO_ACKNOWLEDGE = 'AUTO_ACKNOWLEDGE'
@@ -46,7 +44,6 @@ export const GET_POOL = 'GET_POOL'
export const GET_POOLS = 'GET_POOLS'
export const GET_VM = 'GET_VM'
export const GET_VM_CDROM = 'GET_VM_CDROM'
-export const GET_VM_EVENTS = 'GET_VM_EVENTS'
export const GET_VMS = 'GET_VMS'
export const LOAD_USER_OPTIONS: 'LOAD_USER_OPTIONS' = 'LOAD_USER_OPTIONS'
export const LOGIN = 'LOGIN'
@@ -70,7 +67,6 @@ export const REMOVE_VM = 'REMOVE_VM'
export const RESTART_VM = 'RESTART_VM'
export const SAVE_CONSOLE_OPTIONS = 'SAVE_CONSOLE_OPTIONS'
export const SAVE_FILTERS = 'SAVE_FILTERS'
-export const SAVE_EVENT_FILTERS = 'SAVE_EVENT_FILTERS'
export const SAVE_GLOBAL_OPTIONS: 'SAVE_GLOBAL_OPTIONS' = 'SAVE_GLOBAL_OPTIONS'
export const SAVE_SSH_KEY = 'SAVE_SSH_KEY'
export const SET_ADMINISTRATOR = 'SET_ADMINISTRATOR'
@@ -85,7 +81,6 @@ export const SET_CPU_TOPOLOGY_OPTIONS = 'SET_CPU_TOPOLOGY_OPTIONS'
export const SET_CURRENT_PAGE = 'SET_CURRENT_PAGE'
export const SET_DATA_CENTERS = 'SET_DATA_CENTERS'
export const SET_DEFAULT_TIMEZONE = 'SET_DEFAULT_TIMEZONE'
-export const SET_EVENT_SORT = 'SET_EVENT_SORT'
export const SET_FILTERS = 'SET_FILTERS'
export const SET_HOSTS = 'SET_HOSTS'
export const SET_OPERATING_SYSTEMS = 'SET_OPERATING_SYSTEMS'
diff --git a/src/constants/pages.js b/src/constants/pages.js
index 2bef38e4b..ad2a897b9 100644
--- a/src/constants/pages.js
+++ b/src/constants/pages.js
@@ -5,4 +5,3 @@ export const LIST_PAGE_TYPE = 'listPage'
export const NO_REFRESH_TYPE = 'noRefreshPage'
export const EMPTY_VNIC_PROFILE_ID = ''
export const SETTINGS_PAGE_TYPE = 'settingsPage'
-export const EVENTS_PAGE_TYPE = 'eventsPage'
diff --git a/src/intl/messages.js b/src/intl/messages.js
index c363f08b1..7d27d5d1e 100644
--- a/src/intl/messages.js
+++ b/src/intl/messages.js
@@ -80,7 +80,6 @@ export const messages: { [messageId: string]: MessageType } = {
clear: 'Clear',
clearAll: 'Clear all',
clearAllFilters: 'Clear All Filters',
- clearAllFiltersAndTryAgain: 'Clear all filters and try again',
clearMessages: 'Clear Messages',
clearAutoconnectVmNotAvailable: 'VM chosen for automatic console connection is no longer available. The setting will be cleared.',
clickForHelp: 'Click for help',
@@ -190,7 +189,6 @@ export const messages: { [messageId: string]: MessageType } = {
customScript: 'Custom script',
dataCenter: { message: 'Data Center', description: 'Label for the VM\'s data center' },
dataCenterChangesWithCluster: 'The data center cannot be edited from here. Please contact your administrator if you would like to edit the data center.',
- date: 'Date',
defaultButton: 'Default',
defaultOption: {
message: '(Default)',
@@ -268,10 +266,6 @@ export const messages: { [messageId: string]: MessageType } = {
enum_DiskInterface_ide: { message: 'IDE', description: 'IDE controller VM disk attachment interface' },
enum_DiskInterface_virtio: { message: 'VirtIO', description: 'virtio controller VM disk attachment interface' },
enum_DiskInterface_virtio_scsi: { message: 'VirtIO-SCSI', description: 'virtio SCSI controller VM disk attachment interface' },
- enum_EventSeverity_error: 'Error',
- enum_EventSeverity_warning: 'Warning',
- enum_EventSeverity_normal: 'Information',
- enum_EventSeverity_unknown: 'Unknown',
enum_NicInterface_e1000: {
message: 'e1000',
description: 'Display name of a NIC that provides an E1000 based interface to the VM',
@@ -358,9 +352,6 @@ export const messages: { [messageId: string]: MessageType } = {
},
error: 'Error',
errorWhileCreatingNewDisk: 'Error while creating new disk:',
- events: 'Events',
- eventsFilterTypePlaceholderMessage: 'Filter by Message',
- eventsFilterTypePlaceholderSeverity: 'Filter by Severity',
every30Seconds: 'Every 30 seconds',
everyMinute: 'Every minute',
every2Minute: 'Every 2 minutes',
@@ -423,13 +414,11 @@ export const messages: { [messageId: string]: MessageType } = {
ifVmIsRunningClickToAccessItsGraphicsConsole: 'If the virtual machine is running, click the protocol name to access its Graphical Console.',
info: 'Information',
inPreview: 'In Preview',
- invalidDateFormat: 'Invalid date format. The supported format is {format}.',
ieNotSupported: 'Internet Explorer is not a supported browser.',
ipAddress: { message: 'IP Address', description: 'Label for IP addresses reported by VM guest agent' },
isPersistMemorySnapshot: 'Content of the memory of the virtual machine is included in the snapshot.',
itemDoesntExistOrDontHavePermissions: 'The item doesn\'t exist or you do not have the permissions to view it.',
language: 'Language',
- lastEvents: 'Last Events',
less: {
message: 'less',
description: 'more/less pair used to control collapsible long listing',
@@ -458,7 +447,6 @@ export const messages: { [messageId: string]: MessageType } = {
memory: 'Memory',
memoryIncluded: '(State included)',
messages: 'Messages',
- message: 'Message',
more: {
message: 'more',
description: 'more/less pair used to control collapsible long listing',
@@ -510,7 +498,6 @@ export const messages: { [messageId: string]: MessageType } = {
noClustersAvailable: 'No Clusters available',
noDisks: 'no disks',
noError: 'No error',
- noEventsFound: 'no events',
noMessages: 'There are no notifications to display.',
noneItem: '[None]',
noNetwork: 'No network',
@@ -635,7 +622,6 @@ export const messages: { [messageId: string]: MessageType } = {
message: 'Your session is about to timeout due to inactivity.',
description: 'Primary message for SessionTimeout modal component',
},
- severity: 'Severity',
shutdown: 'Shutdown',
shutdownStatelessPoolVm: 'This virtual machine belongs to {poolName} and is stateless so any data that is currently attached to the virtual machine will be lost if it is shutdown. The virtual machine will be returned to {poolName} if shutdown.',
shutdownVm: 'Shutdown the VM',
@@ -697,7 +683,6 @@ export const messages: { [messageId: string]: MessageType } = {
timezone: 'Timezone',
thisOperationCantBeUndone: 'This operation cannot be undone.',
threadsPerCores: 'Threads per Core',
- toggleDatePicker: 'Toggle date picker',
totalCountOfVirtualProcessorsVmWillBeEquippedWith: 'Total count of virtual processors the virtual machine will be equipped with.',
totalSocketsCpuTooltipMessage: '{number} virtual sockets',
totalCoresCpuTooltipMessage: '{number} cores per socket',
@@ -784,7 +769,6 @@ export const messages: { [messageId: string]: MessageType } = {
username: 'Username',
usingRemoteViewer: 'Using a remote viewer relies on a downloaded .vv file.',
vcpuTopology: 'VCPU Topology',
- viewAll: 'View All',
viewAllVirtualMachines: 'View All Virtual Machines',
virtualMachines: 'Virtual Machines',
virtualSockets: 'Virtual Sockets',
diff --git a/src/intl/translated-messages.json b/src/intl/translated-messages.json
index d42912dbd..65c7ecc2b 100644
--- a/src/intl/translated-messages.json
+++ b/src/intl/translated-messages.json
@@ -45,7 +45,6 @@
"empty": "Prázdné",
"enterVmDescription": "Zadejte popis virtuálního stroje (volitelné)",
"enterVmName": "Zadejte název virtuálního stroje",
- "enum_EventSeverity_unknown": "Neznámý",
"enum_VmStatus_down": "Vyp",
"enum_VmStatus_image_locked": "Obraz disku uzamčen",
"enum_VmStatus_migrating": "Migruje",
@@ -354,7 +353,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "Unbekannt",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
@@ -889,7 +887,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "Desconocido",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
@@ -1424,7 +1421,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "Inconnue",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
@@ -2046,7 +2042,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "Unknown",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
@@ -2435,7 +2430,6 @@
"clear": "გასუფთავება",
"clearAll": "ყველაფრის გასუფთავება",
"clearAllFilters": "ყველა ფილტრის გასუფთავება",
- "clearAllFiltersAndTryAgain": "გაასუფთავეთ ყველა ფილტრი და თავიდან სცადეთ",
"clearAutoconnectVmNotAvailable": "კონსოლის ავტომატური დაკავშირებისთვის არჩეული ვმ-ი ხელმიუწვდომელია. პარამეტრი წაიშლება.",
"clearMessages": "შეტყობინებების გასუფთავება",
"clickForHelp": "დახმარებისთვის დააწკაპუნეთ",
@@ -2527,7 +2521,6 @@
"customScript": "ხელით მითითებული სკრიპტი",
"dataCenter": "მდც",
"dataCenterChangesWithCluster": "მონაცემთა დამუშავების ცენტრის აქ ჩასწორება შეუძლებელია. მის ჩასასწორებლად დაუკავშირდით სისტემურ ადმინისტრატორს.",
- "date": "თარიღი",
"defaultButton": "ნაგულიხმები",
"defaultOption": "(ნაგულისხმები)",
"definedMemory": "აღწერილი მეხსიერება",
@@ -2596,10 +2589,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_error": "შეცდომა",
- "enum_EventSeverity_normal": "ინფორმაცია",
- "enum_EventSeverity_unknown": "უცნობი",
- "enum_EventSeverity_warning": "გაფრთხილება",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_e1000e": "e1000e",
"enum_NicInterface_rtl8139": "rtl8139",
@@ -2623,9 +2612,6 @@
"enum_VmStatus_wait_for_launch": "გაშვების მოლოდინი",
"error": "შეცდომა",
"errorWhileCreatingNewDisk": "ახალი დისკის შექმნის შეცდომა:",
- "events": "მოვლენა",
- "eventsFilterTypePlaceholderMessage": "შეტყობინებით გაფილტვრა",
- "eventsFilterTypePlaceholderSeverity": "სიმწვავის მიხედვით გაშიფვრა",
"every2Minute": "ყოველ 2 წუთში",
"every30Seconds": "ყოველ 30 წამში",
"every5Minute": "ყოველ 5 წუთში",
@@ -2678,12 +2664,10 @@
"ifVmIsRunningClickToAccessItsGraphicsConsole": "თუ ვირტუალური მანქანა გაშვებულია, კონსოლის გასაშვებად დააწკაპუნეთ პროტოკოლის შესაბამის სახელს.",
"inPreview": "გადახედვა",
"info": "ინფორმაცია",
- "invalidDateFormat": "თარიღის არასწორი ფორმატი. მხარდაჭერილი ფორმატია {format}.",
"ipAddress": "IP მისამართი",
"isPersistMemorySnapshot": "სწრაფი ასლი ვირტუალური მანქანის მეხსიერების შემცველობასაც შეიცავს.",
"itemDoesntExistOrDontHavePermissions": "ჩანაწერი არ არსებობს ან არ გაქვთ მისი ნახვის უფლება.",
"language": "ენა",
- "lastEvents": "ბოლო მოვლენები",
"less": "ნაკლები",
"loadingTripleDot": "ჩატვირთვა ...",
"locked": "დაბლოკილია",
@@ -2702,7 +2686,6 @@
"maxNumberOfVms": "ამ პულიდან თქვენი მოხმარებისათვის მაქსიმუმ {numberOfVms} შეიძლება გამოიყოს.",
"memory": "მეხსიერება",
"memoryIncluded": "(შეიცავს მდგომარეობასაც)",
- "message": "შეტყობინება",
"messages": "შეტყობინებები",
"more": "მეტი",
"name": "სახელი",
@@ -2740,7 +2723,6 @@
"noClustersAvailable": "კლასტერები ხელმიუწვდომელია",
"noDisks": "დისკების გარეშე",
"noError": "შეცდომის გარეშე",
- "noEventsFound": "მოვლენების გარეშე",
"noMessages": "საჩვენებელი შეტყობინებების გარეშე.",
"noNetwork": "ქსელის გარეშე",
"noNics": "ქსელის ინტერფეისების გარეშე",
@@ -2823,7 +2805,6 @@
"serialConsole": "სერიული კონსოლი",
"serialConsoleOptions": "სერიული კონსოლის მორგება",
"sessionExpired": "თქვენი სესია არააქტიურობის გამო მალე დასრულდება.",
- "severity": "სიმწვავე",
"shutdown": "გამორთვა",
"shutdownStatelessPoolVm": "ვირტუალური მანქანა ეკუთვნის პულს ( {poolName} ) და არის უნიადაგო, ამიტომ ყველა მონაცემი, რომელიც მიმაგრებულია, წაიშლება მისი გათიშვისთანავე. ვირტუალური მანქანა დაბრუნდება {poolName} -ში ",
"shutdownVm": "ვმ-ის გამორთვა",
@@ -2873,7 +2854,6 @@
"thisOperationCantBeUndone": "ამ ოპერაციის დაბრუნება შეუძლებელია.",
"threadsPerCores": "ნაკადები თითოეული ბირთვისთვის",
"timezone": "დროის სარტყელი",
- "toggleDatePicker": "თარიღის ამრჩევის გადართვა",
"totalCoresCpuTooltipMessage": "{number} ბირთვი თითოეულ სოკეტზე",
"totalCountOfVirtualProcessorsVmWillBeEquippedWith": "ვირტუალური მანქანისთვის განკუთვნილი ვირტუალური პროცესორების რაოდენობა.",
"totalMemoryVmWillBeEquippedWith": "ვირტუალური მანქანისთვის განკუთვნილი მეხსიერების რაოდენობა.",
@@ -2927,7 +2907,6 @@
"utilizationNoHistoricData": "ისტორიის მონაცემები ხელმიუწვდომელია",
"utilizationNoNetStats": "ამ ვმ-სთვის ქსელის გამოყენება ხელმიუწვდომელია",
"vcpuTopology": "VCPU-ის ტოპოლოგია",
- "viewAll": "ყველას ნახვა",
"viewAllVirtualMachines": "ყველა ვირტუალური მანქანის ნახვა",
"virtualMachines": "ვირტუალური მანქანები",
"virtualSockets": "ვირტუალური სოკეტები",
@@ -3169,7 +3148,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "알 수 없음 ",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
@@ -3704,7 +3682,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "Desconhecido",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
@@ -4239,7 +4216,6 @@
"enum_DiskInterface_ide": "IDE",
"enum_DiskInterface_virtio": "VirtIO",
"enum_DiskInterface_virtio_scsi": "VirtIO-SCSI",
- "enum_EventSeverity_unknown": "未知",
"enum_NicInterface_e1000": "e1000",
"enum_NicInterface_rtl8139": "rtl8139",
"enum_NicInterface_virtio": "VirtIO",
diff --git a/src/ovirtapi/index.js b/src/ovirtapi/index.js
index 850aae473..3af29f5ab 100644
--- a/src/ovirtapi/index.js
+++ b/src/ovirtapi/index.js
@@ -305,17 +305,6 @@ const OvirtApi = {
assertLogin({ methodName: 'dismissEvent' })
return httpDelete({ url: `${AppConfiguration.applicationContext}/api/events/${eventId}` })
},
- eventsForVm ({ vmName, newestEventId = 0, maxItems = 0 }: Object): Promise