2024-09-17 14:33:27,551 - INFO - Domain Default found not creating
2024-09-17 14:33:27,766 - INFO - Project ctest-TestBasicPolicy-11793034 not found, creating it
2024-09-17 14:33:28,338 - INFO - Created Project:ctest-TestBasicPolicy-11793034, ID : a7c5ac19-8f1c-4772-8283-9e05db5efb2c
2024-09-17 14:33:30,083 - INFO - ================================================================================
2024-09-17 14:33:30,083 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 14:33:30,083 - 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-09-17 14:33:30,345 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.25': '0'}} with
2024-09-17 14:33:30,345 - INFO - Initial checks done. Running the testcase now
2024-09-17 14:33:30,345 - INFO -
2024-09-17 14:33:31,006 - DEBUG - Response for create_network : {'network': {'id': '92e527c4-9979-4261-8965-035ef77b5aa3', 'name': 'ctest-vn-43488354', 'tenant_id': 'a7c5ac198f1c477282839e05db5efb2c', 'project_id': 'a7c5ac198f1c477282839e05db5efb2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-vn-43488354'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 14:33:31,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '486d1af7-9330-4f9a-a46c-847b07fb5423', 'name': '', 'tenant_id': 'a7c5ac198f1c477282839e05db5efb2c', 'network_id': '92e527c4-9979-4261-8965-035ef77b5aa3', 'ip_version': 4, 'cidr': '130.59.4.192/26', 'allocation_pools': [{'start': '130.59.4.194', 'end': '130.59.4.254'}], 'gateway_ip': '130.59.4.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.59.4.194', 'tags': [], 'project_id': 'a7c5ac198f1c477282839e05db5efb2c'}}
2024-09-17 14:33:31,252 - INFO - Created VN ctest-vn-43488354
2024-09-17 14:33:31,318 - DEBUG - VN ctest-vn-43488354 UUID is 92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:32,010 - DEBUG - Response for create_network : {'network': {'id': 'd6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f', 'name': 'ctest-vn-45136084', 'tenant_id': 'a7c5ac198f1c477282839e05db5efb2c', 'project_id': 'a7c5ac198f1c477282839e05db5efb2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-vn-45136084'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 14:33:32,611 - DEBUG - Response for create_subnet : {'subnet': {'id': '847dc192-f23d-4b6d-9e4f-67128feb833e', 'name': '', 'tenant_id': 'a7c5ac198f1c477282839e05db5efb2c', 'network_id': 'd6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f', 'ip_version': 4, 'cidr': '136.180.182.128/26', 'allocation_pools': [{'start': '136.180.182.130', 'end': '136.180.182.190'}], 'gateway_ip': '136.180.182.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.180.182.130', 'tags': [], 'project_id': 'a7c5ac198f1c477282839e05db5efb2c'}}
2024-09-17 14:33:32,641 - INFO - Created VN ctest-vn-45136084
2024-09-17 14:33:32,704 - DEBUG - VN ctest-vn-45136084 UUID is d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:32,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-43488354, 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-11793034:ctest-vn-45136084, 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-09-17 14:33:33,200 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92e527c4-9979-4261-8965-035ef77b5aa3', 'name': 'ctest-vn-43488354', 'tenant_id': 'a7c5ac198f1c477282839e05db5efb2c', 'project_id': 'a7c5ac198f1c477282839e05db5efb2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['486d1af7-9330-4f9a-a46c-847b07fb5423'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-vn-43488354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-policy-allow-all-23975243']], 'subnet_ipam': [{'subnet_cidr': '130.59.4.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 14:33:33,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f', 'name': 'ctest-vn-45136084', 'tenant_id': 'a7c5ac198f1c477282839e05db5efb2c', 'project_id': 'a7c5ac198f1c477282839e05db5efb2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['847dc192-f23d-4b6d-9e4f-67128feb833e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-vn-45136084'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-policy-allow-all-23975243']], 'subnet_ipam': [{'subnet_cidr': '136.180.182.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 14:33:33,710 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-17 14:33:34,054 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-17 14:33:34,090 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d6796b4a-cfd9-4075-838f-7b441d9337a7
2024-09-17 14:33:34,113 - DEBUG - Requesting: http://10.0.0.28:8082/project/a7c5ac19-8f1c-4772-8283-9e05db5efb2c
2024-09-17 14:33:34,204 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:34,225 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:34,241 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e4d009cf-4b6c-491f-b509-98e7decb4ce4
2024-09-17 14:33:34,252 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e4d009cf-4b6c-491f-b509-98e7decb4ce4
2024-09-17 14:33:34,263 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6f127277-290f-4666-bd1d-c0c1a843abad
2024-09-17 14:33:34,273 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 14:33:34,273 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:34,289 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e4d009cf-4b6c-491f-b509-98e7decb4ce4
2024-09-17 14:33:34,316 - INFO - Verified VN network id 9 for VN 92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:34,316 - INFO - Verifications in API Server for VN ctest-vn-43488354 passed
2024-09-17 14:33:34,317 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:34,336 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e4d009cf-4b6c-491f-b509-98e7decb4ce4
2024-09-17 14:33:34,349 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/e4d009cf-4b6c-491f-b509-98e7decb4ce4
2024-09-17 14:33:34,360 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6f127277-290f-4666-bd1d-c0c1a843abad
2024-09-17 14:33:34,378 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-43488354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11793034', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10584910224546153057', 'uuid-lslong': '9900323062257769123'}, 'enable': 'true', 'created': '2024-09-17T14:33:30', 'last-modified': '2024-09-17T14:33:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.210204'}
2024-09-17 14:33:34,387 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 14:33:34,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43488354 passed
2024-09-17 14:33:34,387 - DEBUG - ====Verifying policy data for ctest-vn-43488354 in API_Server ======
2024-09-17 14:33:34,387 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-17 14:33:34,394 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d6796b4a-cfd9-4075-838f-7b441d9337a7
2024-09-17 14:33:34,409 - DEBUG - Requesting: http://10.0.0.28:8082/project/a7c5ac19-8f1c-4772-8283-9e05db5efb2c
2024-09-17 14:33:34,493 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/92e527c4-9979-4261-8965-035ef77b5aa3
2024-09-17 14:33:34,509 - DEBUG - ==>Verifying data for policy with id: 33e8b8bb-e80a-4e43-abd6-b84d5667d437, fqn: ['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-policy-allow-all-23975243']
2024-09-17 14:33:34,509 - INFO - VN ctest-vn-43488354 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 14:33:34,509 - DEBUG - Verifying the vn in opserver
2024-09-17 14:33:34,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-43488354 virtual network link through opserver 10.0.0.28
2024-09-17 14:33:34,509 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-17 14:33:34,850 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-17 14:33:34,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-43488354', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-43488354?flat'}
2024-09-17 14:33:34,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-43488354 is found in opserver
2024-09-17 14:33:34,935 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 14:33:34,942 - DEBUG - VRF ids for VN ctest-vn-43488354: {}
2024-09-17 14:33:34,942 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-17 14:33:34,949 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d6796b4a-cfd9-4075-838f-7b441d9337a7
2024-09-17 14:33:34,964 - DEBUG - Requesting: http://10.0.0.28:8082/project/a7c5ac19-8f1c-4772-8283-9e05db5efb2c
2024-09-17 14:33:35,055 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:35,074 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:35,090 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daf1a0af-69bb-4ed5-8592-740d99b437e4
2024-09-17 14:33:35,100 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daf1a0af-69bb-4ed5-8592-740d99b437e4
2024-09-17 14:33:35,109 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/e9ebc1f6-329d-4b29-b249-1928de2df536
2024-09-17 14:33:35,117 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 14:33:35,117 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:35,133 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daf1a0af-69bb-4ed5-8592-740d99b437e4
2024-09-17 14:33:35,157 - INFO - Verified VN network id 10 for VN d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:35,157 - INFO - Verifications in API Server for VN ctest-vn-45136084 passed
2024-09-17 14:33:35,157 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:35,173 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daf1a0af-69bb-4ed5-8592-740d99b437e4
2024-09-17 14:33:35,184 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/daf1a0af-69bb-4ed5-8592-740d99b437e4
2024-09-17 14:33:35,195 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/e9ebc1f6-329d-4b29-b249-1928de2df536
2024-09-17 14:33:35,211 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-45136084', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11793034', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15481600816566783684', 'uuid-lslong': '10628182461937406223'}, 'enable': 'true', 'created': '2024-09-17T14:33:31', 'last-modified': '2024-09-17T14:33:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.757602'}
2024-09-17 14:33:35,219 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 14:33:35,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45136084 passed
2024-09-17 14:33:35,220 - DEBUG - ====Verifying policy data for ctest-vn-45136084 in API_Server ======
2024-09-17 14:33:35,220 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-17 14:33:35,227 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d6796b4a-cfd9-4075-838f-7b441d9337a7
2024-09-17 14:33:35,244 - DEBUG - Requesting: http://10.0.0.28:8082/project/a7c5ac19-8f1c-4772-8283-9e05db5efb2c
2024-09-17 14:33:35,338 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6d9b1ea-e9dc-4ec4-937e-e3a37bd0d10f
2024-09-17 14:33:35,356 - DEBUG - ==>Verifying data for policy with id: 33e8b8bb-e80a-4e43-abd6-b84d5667d437, fqn: ['default-domain', 'ctest-TestBasicPolicy-11793034', 'ctest-policy-allow-all-23975243']
2024-09-17 14:33:35,356 - INFO - VN ctest-vn-45136084 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 14:33:35,356 - DEBUG - Verifying the vn in opserver
2024-09-17 14:33:35,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-45136084 virtual network link through opserver 10.0.0.28
2024-09-17 14:33:35,356 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-17 14:33:35,371 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-45136084', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-45136084?flat'}
2024-09-17 14:33:35,371 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11793034:ctest-vn-45136084 is found in opserver
2024-09-17 14:33:35,386 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 14:33:35,393 - DEBUG - VRF ids for VN ctest-vn-45136084: {}
2024-09-17 14:33:35,470 - DEBUG - Services list from nova: [