2024-11-06 13:15:51,192 - INFO - Domain Default found not creating
2024-11-06 13:15:51,359 - INFO - Project ctest-TestBasicPolicy-97730954 not found, creating it
2024-11-06 13:15:51,860 - INFO - Created Project:ctest-TestBasicPolicy-97730954, ID : 40773a5a-14e5-475f-985d-465f04405bdf
2024-11-06 13:15:53,369 - INFO - ================================================================================
2024-11-06 13:15:53,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-06 13:15:53,370 - 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-06 13:15:53,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with
2024-11-06 13:15:53,624 - INFO - Initial checks done. Running the testcase now
2024-11-06 13:15:53,624 - INFO -
2024-11-06 13:15:54,201 - DEBUG - Response for create_network : {'network': {'id': 'be09f67c-c4d0-4200-ba47-bedb53b169e5', 'name': 'ctest-vn-53918610', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-53918610'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 13:15:54,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '083b1b2f-e4d7-4596-8f00-d6cef87947b6', 'name': '', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'network_id': 'be09f67c-c4d0-4200-ba47-bedb53b169e5', 'ip_version': 4, 'cidr': '187.208.239.192/26', 'allocation_pools': [{'start': '187.208.239.194', 'end': '187.208.239.254'}], 'gateway_ip': '187.208.239.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.208.239.194', 'tags': [], 'project_id': '40773a5a14e5475f985d465f04405bdf'}}
2024-11-06 13:15:54,399 - INFO - Created VN ctest-vn-53918610
2024-11-06 13:15:54,458 - DEBUG - VN ctest-vn-53918610 UUID is be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:54,781 - DEBUG - Response for create_network : {'network': {'id': '7e3fef03-2b35-4bd6-89f9-516a0568413d', 'name': 'ctest-vn-67069990', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-67069990'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 13:15:54,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '90f0b74c-5362-41d3-8726-98326c30f7b9', 'name': '', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'network_id': '7e3fef03-2b35-4bd6-89f9-516a0568413d', 'ip_version': 4, 'cidr': '170.53.153.0/26', 'allocation_pools': [{'start': '170.53.153.2', 'end': '170.53.153.62'}], 'gateway_ip': '170.53.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.53.153.2', 'tags': [], 'project_id': '40773a5a14e5475f985d465f04405bdf'}}
2024-11-06 13:15:54,967 - INFO - Created VN ctest-vn-67069990
2024-11-06 13:15:55,026 - DEBUG - VN ctest-vn-67069990 UUID is 7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:55,148 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610, 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-97730954:ctest-vn-67069990, 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-06 13:15:55,463 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be09f67c-c4d0-4200-ba47-bedb53b169e5', 'name': 'ctest-vn-53918610', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['083b1b2f-e4d7-4596-8f00-d6cef87947b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-53918610'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922']], 'subnet_ipam': [{'subnet_cidr': '187.208.239.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 13:15:55,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e3fef03-2b35-4bd6-89f9-516a0568413d', 'name': 'ctest-vn-67069990', 'tenant_id': '40773a5a14e5475f985d465f04405bdf', 'project_id': '40773a5a14e5475f985d465f04405bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90f0b74c-5362-41d3-8726-98326c30f7b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-vn-67069990'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922']], 'subnet_ipam': [{'subnet_cidr': '170.53.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 13:15:55,898 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 13:15:56,199 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 13:15:56,229 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1
2024-11-06 13:15:56,245 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf
2024-11-06 13:15:56,327 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:56,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:56,356 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851
2024-11-06 13:15:56,364 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851
2024-11-06 13:15:56,373 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/faeca86e-d250-4b22-ae41-d9eea6c239ff
2024-11-06 13:15:56,381 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 13:15:56,381 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:56,394 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851
2024-11-06 13:15:56,412 - INFO - Verified VN network id 7 for VN be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:56,412 - INFO - Verifications in API Server for VN ctest-vn-53918610 passed
2024-11-06 13:15:56,412 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:56,429 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851
2024-11-06 13:15:56,438 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0a7a672-ba2c-4446-b8ff-a134110d7851
2024-11-06 13:15:56,447 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/faeca86e-d250-4b22-ae41-d9eea6c239ff
2024-11-06 13:15:56,459 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97730954', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13693747157735064064', 'uuid-lslong': '13422907063612303845'}, 'enable': 'true', 'created': '2024-11-06T13:15:54', 'last-modified': '2024-11-06T13:15:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024585'}
2024-11-06 13:15:56,466 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 13:15:56,466 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53918610 passed
2024-11-06 13:15:56,466 - DEBUG - ====Verifying policy data for ctest-vn-53918610 in API_Server ======
2024-11-06 13:15:56,466 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 13:15:56,472 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1
2024-11-06 13:15:56,485 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf
2024-11-06 13:15:56,562 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/be09f67c-c4d0-4200-ba47-bedb53b169e5
2024-11-06 13:15:56,575 - DEBUG - ==>Verifying data for policy with id: 65e5b67e-2ecb-42cb-a5d1-092399a48c48, fqn: ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922']
2024-11-06 13:15:56,575 - INFO - VN ctest-vn-53918610 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 13:15:56,575 - DEBUG - Verifying the vn in opserver
2024-11-06 13:15:56,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610 virtual network link through opserver 10.0.0.22
2024-11-06 13:15:56,576 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-06 13:15:56,870 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-06 13:15:56,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610?flat'}
2024-11-06 13:15:56,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-53918610 is found in opserver
2024-11-06 13:15:57,007 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 13:15:57,014 - DEBUG - VRF ids for VN ctest-vn-53918610: {}
2024-11-06 13:15:57,014 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 13:15:57,021 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1
2024-11-06 13:15:57,041 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf
2024-11-06 13:15:57,132 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:57,153 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:57,166 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3
2024-11-06 13:15:57,176 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3
2024-11-06 13:15:57,185 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2c43aa07-d340-4b79-ad9d-6f0ac18b9a4e
2024-11-06 13:15:57,193 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 13:15:57,193 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:57,209 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3
2024-11-06 13:15:57,232 - INFO - Verified VN network id 8 for VN 7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:57,233 - INFO - Verifications in API Server for VN ctest-vn-67069990 passed
2024-11-06 13:15:57,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:57,248 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3
2024-11-06 13:15:57,257 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/693900cb-825b-4970-a7ad-2d9adf4fd1f3
2024-11-06 13:15:57,266 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2c43aa07-d340-4b79-ad9d-6f0ac18b9a4e
2024-11-06 13:15:57,280 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97730954', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9097252569200544726', 'uuid-lslong': '9942067168196182333'}, 'enable': 'true', 'created': '2024-11-06T13:15:54', 'last-modified': '2024-11-06T13:15:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602432'}
2024-11-06 13:15:57,289 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 13:15:57,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67069990 passed
2024-11-06 13:15:57,289 - DEBUG - ====Verifying policy data for ctest-vn-67069990 in API_Server ======
2024-11-06 13:15:57,289 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-06 13:15:57,296 - DEBUG - Requesting: http://10.0.0.22:8082/domain/793d1171-f4cf-445e-9ae7-1ac3d8dfd7b1
2024-11-06 13:15:57,309 - DEBUG - Requesting: http://10.0.0.22:8082/project/40773a5a-14e5-475f-985d-465f04405bdf
2024-11-06 13:15:57,409 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7e3fef03-2b35-4bd6-89f9-516a0568413d
2024-11-06 13:15:57,424 - DEBUG - ==>Verifying data for policy with id: 65e5b67e-2ecb-42cb-a5d1-092399a48c48, fqn: ['default-domain', 'ctest-TestBasicPolicy-97730954', 'ctest-policy-allow-all-04843922']
2024-11-06 13:15:57,424 - INFO - VN ctest-vn-67069990 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 13:15:57,424 - DEBUG - Verifying the vn in opserver
2024-11-06 13:15:57,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990 virtual network link through opserver 10.0.0.22
2024-11-06 13:15:57,424 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-06 13:15:57,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990?flat'}
2024-11-06 13:15:57,436 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97730954:ctest-vn-67069990 is found in opserver
2024-11-06 13:15:57,446 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 13:15:57,453 - DEBUG - VRF ids for VN ctest-vn-67069990: {}
2024-11-06 13:15:57,510 - DEBUG - Services list from nova: [