2024-10-29 22:21:23,069 - INFO - Domain Default found not creating
2024-10-29 22:21:23,263 - INFO - Project ctest-TestBasicPolicy-54143920 not found, creating it
2024-10-29 22:21:23,772 - INFO - Created Project:ctest-TestBasicPolicy-54143920, ID : 5ccb0045-ab40-4ce0-9a22-bc413fbf7611
2024-10-29 22:21:25,596 - INFO - ================================================================================
2024-10-29 22:21:25,596 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-29 22:21:25,596 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-10-29 22:21:25,872 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with
2024-10-29 22:21:25,872 - INFO - Initial checks done. Running the testcase now
2024-10-29 22:21:25,872 - INFO -
2024-10-29 22:21:26,546 - DEBUG - Response for create_network : {'network': {'id': 'bdd9610d-c086-4398-8be0-3ffb98c4fcba', 'name': 'ctest-vn-06197431', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-06197431'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 22:21:26,805 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5115444-c6a3-498d-912f-56283334de1a', 'name': '', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'network_id': 'bdd9610d-c086-4398-8be0-3ffb98c4fcba', 'ip_version': 4, 'cidr': '93.168.91.64/26', 'allocation_pools': [{'start': '93.168.91.66', 'end': '93.168.91.126'}], 'gateway_ip': '93.168.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.168.91.66', 'tags': [], 'project_id': '5ccb0045ab404ce09a22bc413fbf7611'}}
2024-10-29 22:21:26,838 - INFO - Created VN ctest-vn-06197431
2024-10-29 22:21:26,898 - DEBUG - VN ctest-vn-06197431 UUID is bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:27,258 - DEBUG - Response for create_network : {'network': {'id': '00e596ed-c6ad-471d-a737-e378bc92ff92', 'name': 'ctest-vn-08438082', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-08438082'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 22:21:27,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '5748fe93-6e41-49be-8c76-f7adea3b8e21', 'name': '', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'network_id': '00e596ed-c6ad-471d-a737-e378bc92ff92', 'ip_version': 4, 'cidr': '105.37.157.128/26', 'allocation_pools': [{'start': '105.37.157.130', 'end': '105.37.157.190'}], 'gateway_ip': '105.37.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.37.157.130', 'tags': [], 'project_id': '5ccb0045ab404ce09a22bc413fbf7611'}}
2024-10-29 22:21:27,516 - INFO - Created VN ctest-vn-08438082
2024-10-29 22:21:27,574 - DEBUG - VN ctest-vn-08438082 UUID is 00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:27,707 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-10-29 22:21:28,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdd9610d-c086-4398-8be0-3ffb98c4fcba', 'name': 'ctest-vn-06197431', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5115444-c6a3-498d-912f-56283334de1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-06197431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486']], 'subnet_ipam': [{'subnet_cidr': '93.168.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 22:21:28,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00e596ed-c6ad-471d-a737-e378bc92ff92', 'name': 'ctest-vn-08438082', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5748fe93-6e41-49be-8c76-f7adea3b8e21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-08438082'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486']], 'subnet_ipam': [{'subnet_cidr': '105.37.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 22:21:28,566 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 22:21:28,927 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 22:21:29,293 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3
2024-10-29 22:21:29,319 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611
2024-10-29 22:21:29,405 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:29,423 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:29,439 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa
2024-10-29 22:21:29,450 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa
2024-10-29 22:21:29,463 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/27bf2e25-0745-4912-821d-86036829cd6a
2024-10-29 22:21:29,474 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 22:21:29,474 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:29,491 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa
2024-10-29 22:21:29,517 - INFO - Verified VN network id 8 for VN bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:29,517 - INFO - Verifications in API Server for VN ctest-vn-06197431 passed
2024-10-29 22:21:29,517 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:29,534 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa
2024-10-29 22:21:29,546 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa
2024-10-29 22:21:29,558 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/27bf2e25-0745-4912-821d-86036829cd6a
2024-10-29 22:21:29,576 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54143920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13680072054807085976', 'uuid-lslong': '10079126315887557818'}, 'enable': 'true', 'created': '2024-10-29T22:21:26', 'last-modified': '2024-10-29T22:21:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.533055'}
2024-10-29 22:21:29,584 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 22:21:29,585 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06197431 passed
2024-10-29 22:21:29,585 - DEBUG - ====Verifying policy data for ctest-vn-06197431 in API_Server ======
2024-10-29 22:21:29,585 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 22:21:29,594 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3
2024-10-29 22:21:29,610 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611
2024-10-29 22:21:29,716 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba
2024-10-29 22:21:29,733 - DEBUG - ==>Verifying data for policy with id: 7a477588-30ed-4245-8274-63d9ac8420a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486']
2024-10-29 22:21:29,733 - INFO - VN ctest-vn-06197431 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 22:21:29,733 - DEBUG - Verifying the vn in opserver
2024-10-29 22:21:29,733 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431 virtual network link through opserver 10.0.0.29
2024-10-29 22:21:29,733 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-29 22:21:30,361 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-29 22:21:30,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431?flat'}
2024-10-29 22:21:30,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431 is found in opserver
2024-10-29 22:21:30,476 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 22:21:30,482 - DEBUG - VRF ids for VN ctest-vn-06197431: {}
2024-10-29 22:21:30,482 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 22:21:30,491 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3
2024-10-29 22:21:30,508 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611
2024-10-29 22:21:30,614 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:30,634 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:30,650 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5
2024-10-29 22:21:30,660 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5
2024-10-29 22:21:30,671 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b91a369d-6c56-4e9f-861b-e8e07c79f02e
2024-10-29 22:21:30,679 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 22:21:30,679 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:30,695 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5
2024-10-29 22:21:30,718 - INFO - Verified VN network id 9 for VN 00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:30,718 - INFO - Verifications in API Server for VN ctest-vn-08438082 passed
2024-10-29 22:21:30,719 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:30,735 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5
2024-10-29 22:21:30,745 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5
2024-10-29 22:21:30,756 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b91a369d-6c56-4e9f-861b-e8e07c79f02e
2024-10-29 22:21:30,775 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54143920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '64623717651400477', 'uuid-lslong': '12049349435752382354'}, 'enable': 'true', 'created': '2024-10-29T22:21:27', 'last-modified': '2024-10-29T22:21:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.413627'}
2024-10-29 22:21:30,783 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 22:21:30,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08438082 passed
2024-10-29 22:21:30,784 - DEBUG - ====Verifying policy data for ctest-vn-08438082 in API_Server ======
2024-10-29 22:21:30,784 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 22:21:30,792 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3
2024-10-29 22:21:30,808 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611
2024-10-29 22:21:30,911 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92
2024-10-29 22:21:30,931 - DEBUG - ==>Verifying data for policy with id: 7a477588-30ed-4245-8274-63d9ac8420a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486']
2024-10-29 22:21:30,931 - INFO - VN ctest-vn-08438082 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 22:21:30,931 - DEBUG - Verifying the vn in opserver
2024-10-29 22:21:30,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082 virtual network link through opserver 10.0.0.29
2024-10-29 22:21:30,931 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-29 22:21:30,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082?flat'}
2024-10-29 22:21:30,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082 is found in opserver
2024-10-29 22:21:30,963 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 22:21:30,972 - DEBUG - VRF ids for VN ctest-vn-08438082: {}
2024-10-29 22:21:31,038 - DEBUG - Services list from nova: [