2024-11-13 11:52:18,065 - INFO - Domain Default found not creating
2024-11-13 11:52:18,246 - INFO - Project ctest-TestBasicPolicy-10820322 not found, creating it
2024-11-13 11:52:18,746 - INFO - Created Project:ctest-TestBasicPolicy-10820322, ID : 92550011-749f-492b-8833-c4007792bac7
2024-11-13 11:52:20,286 - INFO - ================================================================================
2024-11-13 11:52:20,286 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-13 11:52:20,286 - 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-11-13 11:52:20,546 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.17': '0'}} with
2024-11-13 11:52:20,546 - INFO - Initial checks done. Running the testcase now
2024-11-13 11:52:20,546 - INFO -
2024-11-13 11:52:21,150 - DEBUG - Response for create_network : {'network': {'id': '4901c6e3-da76-4afb-9155-10c18eabf3c9', 'name': 'ctest-vn-03728161', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-03728161'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:21,357 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca6d13de-223d-4d0b-bdd9-052f69d9640a', 'name': '', 'tenant_id': '92550011749f492b8833c4007792bac7', 'network_id': '4901c6e3-da76-4afb-9155-10c18eabf3c9', 'ip_version': 4, 'cidr': '109.175.161.64/26', 'allocation_pools': [{'start': '109.175.161.66', 'end': '109.175.161.126'}], 'gateway_ip': '109.175.161.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.175.161.66', 'tags': [], 'project_id': '92550011749f492b8833c4007792bac7'}}
2024-11-13 11:52:21,379 - INFO - Created VN ctest-vn-03728161
2024-11-13 11:52:21,436 - DEBUG - VN ctest-vn-03728161 UUID is 4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:21,748 - DEBUG - Response for create_network : {'network': {'id': 'd9fbd898-1e92-45fe-8672-71cad04f66ed', 'name': 'ctest-vn-57905710', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-57905710'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:21,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '91a2f603-ef82-4438-b2c9-ea4fcb00cbb1', 'name': '', 'tenant_id': '92550011749f492b8833c4007792bac7', 'network_id': 'd9fbd898-1e92-45fe-8672-71cad04f66ed', 'ip_version': 4, 'cidr': '219.176.169.128/26', 'allocation_pools': [{'start': '219.176.169.130', 'end': '219.176.169.190'}], 'gateway_ip': '219.176.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.176.169.130', 'tags': [], 'project_id': '92550011749f492b8833c4007792bac7'}}
2024-11-13 11:52:21,922 - INFO - Created VN ctest-vn-57905710
2024-11-13 11:52:21,984 - DEBUG - VN ctest-vn-57905710 UUID is d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:22,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161, 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-10820322:ctest-vn-57905710, 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-11-13 11:52:22,421 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4901c6e3-da76-4afb-9155-10c18eabf3c9', 'name': 'ctest-vn-03728161', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca6d13de-223d-4d0b-bdd9-052f69d9640a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-03728161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364']], 'subnet_ipam': [{'subnet_cidr': '109.175.161.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:22,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9fbd898-1e92-45fe-8672-71cad04f66ed', 'name': 'ctest-vn-57905710', 'tenant_id': '92550011749f492b8833c4007792bac7', 'project_id': '92550011749f492b8833c4007792bac7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91a2f603-ef82-4438-b2c9-ea4fcb00cbb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-vn-57905710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364']], 'subnet_ipam': [{'subnet_cidr': '219.176.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 11:52:22,860 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-13 11:52:23,166 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-13 11:52:23,199 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93
2024-11-13 11:52:23,215 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7
2024-11-13 11:52:23,298 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:23,315 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:23,329 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55
2024-11-13 11:52:23,341 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55
2024-11-13 11:52:23,355 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/a041e40c-6a23-4fb9-9852-4d85f33e7cdf
2024-11-13 11:52:23,366 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 11:52:23,366 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:23,383 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55
2024-11-13 11:52:23,406 - INFO - Verified VN network id 8 for VN 4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:23,407 - INFO - Verifications in API Server for VN ctest-vn-03728161 passed
2024-11-13 11:52:23,407 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:23,421 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55
2024-11-13 11:52:23,431 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/411e4d3f-e9f2-446e-baa4-0191aaffea55
2024-11-13 11:52:23,440 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/a041e40c-6a23-4fb9-9852-4d85f33e7cdf
2024-11-13 11:52:23,458 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10820322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5260704521670511355', 'uuid-lslong': '10472294932028322761'}, 'enable': 'true', 'created': '2024-11-13T11:52:21', 'last-modified': '2024-11-13T11:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.060459'}
2024-11-13 11:52:23,467 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 11:52:23,467 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03728161 passed
2024-11-13 11:52:23,467 - DEBUG - ====Verifying policy data for ctest-vn-03728161 in API_Server ======
2024-11-13 11:52:23,467 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-13 11:52:23,474 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93
2024-11-13 11:52:23,489 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7
2024-11-13 11:52:23,569 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/4901c6e3-da76-4afb-9155-10c18eabf3c9
2024-11-13 11:52:23,583 - DEBUG - ==>Verifying data for policy with id: e3dcf5f7-9fa4-409d-80f5-68f640ae4838, fqn: ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364']
2024-11-13 11:52:23,583 - INFO - VN ctest-vn-03728161 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 11:52:23,583 - DEBUG - Verifying the vn in opserver
2024-11-13 11:52:23,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161 virtual network link through opserver 10.0.0.31
2024-11-13 11:52:23,583 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-13 11:52:23,875 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-13 11:52:23,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161?flat'}
2024-11-13 11:52:23,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-03728161 is found in opserver
2024-11-13 11:52:23,958 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 11:52:23,964 - DEBUG - VRF ids for VN ctest-vn-03728161: {}
2024-11-13 11:52:23,964 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-13 11:52:23,971 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93
2024-11-13 11:52:23,985 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7
2024-11-13 11:52:24,070 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:24,090 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:24,104 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e
2024-11-13 11:52:24,114 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e
2024-11-13 11:52:24,124 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/d77a6b51-55f1-472d-aeea-5680081539be
2024-11-13 11:52:24,132 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 11:52:24,132 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:24,149 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e
2024-11-13 11:52:24,172 - INFO - Verified VN network id 9 for VN d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:24,172 - INFO - Verifications in API Server for VN ctest-vn-57905710 passed
2024-11-13 11:52:24,172 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:24,187 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e
2024-11-13 11:52:24,197 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e2beaff1-720a-485c-b56c-016b6b09403e
2024-11-13 11:52:24,207 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/d77a6b51-55f1-472d-aeea-5680081539be
2024-11-13 11:52:24,221 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10820322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15707386273244268030', 'uuid-lslong': '9687930864319555309'}, 'enable': 'true', 'created': '2024-11-13T11:52:21', 'last-modified': '2024-11-13T11:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572128'}
2024-11-13 11:52:24,228 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 11:52:24,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57905710 passed
2024-11-13 11:52:24,229 - DEBUG - ====Verifying policy data for ctest-vn-57905710 in API_Server ======
2024-11-13 11:52:24,229 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-13 11:52:24,235 - DEBUG - Requesting: http://10.0.0.31:8082/domain/938998a0-bd48-4e09-9aa0-9fb1ebf86f93
2024-11-13 11:52:24,250 - DEBUG - Requesting: http://10.0.0.31:8082/project/92550011-749f-492b-8833-c4007792bac7
2024-11-13 11:52:24,334 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d9fbd898-1e92-45fe-8672-71cad04f66ed
2024-11-13 11:52:24,350 - DEBUG - ==>Verifying data for policy with id: e3dcf5f7-9fa4-409d-80f5-68f640ae4838, fqn: ['default-domain', 'ctest-TestBasicPolicy-10820322', 'ctest-policy-allow-all-25521364']
2024-11-13 11:52:24,350 - INFO - VN ctest-vn-57905710 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 11:52:24,350 - DEBUG - Verifying the vn in opserver
2024-11-13 11:52:24,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710 virtual network link through opserver 10.0.0.31
2024-11-13 11:52:24,350 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-13 11:52:24,363 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710?flat'}
2024-11-13 11:52:24,363 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10820322:ctest-vn-57905710 is found in opserver
2024-11-13 11:52:24,377 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 11:52:24,382 - DEBUG - VRF ids for VN ctest-vn-57905710: {}
2024-11-13 11:52:24,454 - DEBUG - Services list from nova: [