2024-10-21 02:28:20,731 - INFO - Domain Default found not creating
2024-10-21 02:28:20,925 - INFO - Project ctest-TestBasicPolicy-94810989 not found, creating it
2024-10-21 02:28:21,400 - INFO - Created Project:ctest-TestBasicPolicy-94810989, ID : 5a6fe318-204d-45ba-9f75-8b3ab814fc81
2024-10-21 02:28:23,119 - INFO - ================================================================================
2024-10-21 02:28:23,119 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-21 02:28:23,119 - 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-21 02:28:23,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.21': '0'}} with
2024-10-21 02:28:23,375 - INFO - Initial checks done. Running the testcase now
2024-10-21 02:28:23,375 - INFO -
2024-10-21 02:28:24,003 - DEBUG - Response for create_network : {'network': {'id': '1409ac6d-4cae-49c7-a81c-23215b363b68', 'name': 'ctest-vn-26587834', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-26587834'], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:28:24,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d132c1e-ca3f-4eb8-9a66-6c214e0ed19d', 'name': '', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'network_id': '1409ac6d-4cae-49c7-a81c-23215b363b68', 'ip_version': 4, 'cidr': '198.170.237.0/26', 'allocation_pools': [{'start': '198.170.237.2', 'end': '198.170.237.62'}], 'gateway_ip': '198.170.237.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.170.237.2', 'tags': [], 'project_id': '5a6fe318204d45ba9f758b3ab814fc81'}}
2024-10-21 02:28:24,235 - INFO - Created VN ctest-vn-26587834
2024-10-21 02:28:24,288 - DEBUG - VN ctest-vn-26587834 UUID is 1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:24,614 - DEBUG - Response for create_network : {'network': {'id': 'fb9f04c8-cd12-41aa-aba8-294dcf1d787a', 'name': 'ctest-vn-48642526', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-48642526'], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:28:24,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '54449ed7-039d-443a-bb1f-890f45a31066', 'name': '', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'network_id': 'fb9f04c8-cd12-41aa-aba8-294dcf1d787a', 'ip_version': 4, 'cidr': '41.106.78.128/26', 'allocation_pools': [{'start': '41.106.78.130', 'end': '41.106.78.190'}], 'gateway_ip': '41.106.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.106.78.130', 'tags': [], 'project_id': '5a6fe318204d45ba9f758b3ab814fc81'}}
2024-10-21 02:28:24,846 - INFO - Created VN ctest-vn-48642526
2024-10-21 02:28:24,899 - DEBUG - VN ctest-vn-48642526 UUID is fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:25,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834, 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-94810989:ctest-vn-48642526, 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-21 02:28:25,367 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1409ac6d-4cae-49c7-a81c-23215b363b68', 'name': 'ctest-vn-26587834', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d132c1e-ca3f-4eb8-9a66-6c214e0ed19d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-26587834'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766']], 'subnet_ipam': [{'subnet_cidr': '198.170.237.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:28:25,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb9f04c8-cd12-41aa-aba8-294dcf1d787a', 'name': 'ctest-vn-48642526', 'tenant_id': '5a6fe318204d45ba9f758b3ab814fc81', 'project_id': '5a6fe318204d45ba9f758b3ab814fc81', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54449ed7-039d-443a-bb1f-890f45a31066'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-vn-48642526'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766']], 'subnet_ipam': [{'subnet_cidr': '41.106.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:28:25,779 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-21 02:28:26,128 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-21 02:28:26,164 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22
2024-10-21 02:28:26,180 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81
2024-10-21 02:28:26,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:26,269 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:26,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4
2024-10-21 02:28:26,287 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4
2024-10-21 02:28:26,295 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/53e73ac7-342d-4ee5-88b5-64108da26429
2024-10-21 02:28:26,302 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-21 02:28:26,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:26,312 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4
2024-10-21 02:28:26,326 - INFO - Verified VN network id 8 for VN 1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:26,326 - INFO - Verifications in API Server for VN ctest-vn-26587834 passed
2024-10-21 02:28:26,326 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:26,337 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4
2024-10-21 02:28:26,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e55a834-55ed-4555-afa8-f6f0c85a61b4
2024-10-21 02:28:26,354 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/53e73ac7-342d-4ee5-88b5-64108da26429
2024-10-21 02:28:26,369 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94810989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1443874740986857927', 'uuid-lslong': '12113595723890965352'}, 'enable': 'true', 'created': '2024-10-21T02:28:23', 'last-modified': '2024-10-21T02:28:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037046'}
2024-10-21 02:28:26,377 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-21 02:28:26,377 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26587834 passed
2024-10-21 02:28:26,377 - DEBUG - ====Verifying policy data for ctest-vn-26587834 in API_Server ======
2024-10-21 02:28:26,377 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-21 02:28:26,385 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22
2024-10-21 02:28:26,399 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81
2024-10-21 02:28:26,475 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1409ac6d-4cae-49c7-a81c-23215b363b68
2024-10-21 02:28:26,484 - DEBUG - ==>Verifying data for policy with id: 151cb47b-962e-4994-a477-2b09a88cb9bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766']
2024-10-21 02:28:26,484 - INFO - VN ctest-vn-26587834 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-21 02:28:26,485 - DEBUG - Verifying the vn in opserver
2024-10-21 02:28:26,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834 virtual network link through opserver 10.0.0.38
2024-10-21 02:28:26,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-10-21 02:28:26,825 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-10-21 02:28:26,898 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834?flat'}
2024-10-21 02:28:26,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-26587834 is found in opserver
2024-10-21 02:28:26,912 - DEBUG - Do not have enough data to verify VN in agent
2024-10-21 02:28:26,918 - DEBUG - VRF ids for VN ctest-vn-26587834: {}
2024-10-21 02:28:26,918 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-21 02:28:26,926 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22
2024-10-21 02:28:26,941 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81
2024-10-21 02:28:27,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:27,026 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:27,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f
2024-10-21 02:28:27,046 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f
2024-10-21 02:28:27,054 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f02cb96-ec40-40e4-afa8-9af76bf39157
2024-10-21 02:28:27,063 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-21 02:28:27,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:27,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f
2024-10-21 02:28:27,092 - INFO - Verified VN network id 9 for VN fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:27,092 - INFO - Verifications in API Server for VN ctest-vn-48642526 passed
2024-10-21 02:28:27,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:27,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f
2024-10-21 02:28:27,119 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/380a3e72-0edc-406d-ae0d-f30140287d9f
2024-10-21 02:28:27,130 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1f02cb96-ec40-40e4-afa8-9af76bf39157
2024-10-21 02:28:27,146 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94810989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18131215885297402282', 'uuid-lslong': '12369181790737102970'}, 'enable': 'true', 'created': '2024-10-21T02:28:24', 'last-modified': '2024-10-21T02:28:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539174'}
2024-10-21 02:28:27,153 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-21 02:28:27,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48642526 passed
2024-10-21 02:28:27,153 - DEBUG - ====Verifying policy data for ctest-vn-48642526 in API_Server ======
2024-10-21 02:28:27,154 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-10-21 02:28:27,161 - DEBUG - Requesting: http://10.0.0.38:8082/domain/78c1a21f-51f3-4474-bd76-5365faf77c22
2024-10-21 02:28:27,175 - DEBUG - Requesting: http://10.0.0.38:8082/project/5a6fe318-204d-45ba-9f75-8b3ab814fc81
2024-10-21 02:28:27,252 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb9f04c8-cd12-41aa-aba8-294dcf1d787a
2024-10-21 02:28:27,261 - DEBUG - ==>Verifying data for policy with id: 151cb47b-962e-4994-a477-2b09a88cb9bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-94810989', 'ctest-policy-allow-all-41862766']
2024-10-21 02:28:27,261 - INFO - VN ctest-vn-48642526 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-21 02:28:27,261 - DEBUG - Verifying the vn in opserver
2024-10-21 02:28:27,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526 virtual network link through opserver 10.0.0.38
2024-10-21 02:28:27,262 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-10-21 02:28:27,275 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526?flat'}
2024-10-21 02:28:27,275 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94810989:ctest-vn-48642526 is found in opserver
2024-10-21 02:28:27,288 - DEBUG - Do not have enough data to verify VN in agent
2024-10-21 02:28:27,294 - DEBUG - VRF ids for VN ctest-vn-48642526: {}
2024-10-21 02:28:27,363 - DEBUG - Services list from nova: [