2025-05-01 02:25:03,225 - INFO - Domain Default found not creating
2025-05-01 02:25:03,346 - INFO - Project ctest-TestBasicPolicy-84556734 not found, creating it
2025-05-01 02:25:03,788 - INFO - Created Project:ctest-TestBasicPolicy-84556734, ID : 56854612-3934-4b9e-9272-6c9d34c4065e
2025-05-01 02:25:05,170 - INFO - ================================================================================
2025-05-01 02:25:05,170 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-01 02:25:05,170 - 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
2025-05-01 02:25:05,429 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-05-01 02:25:05,429 - INFO - Initial checks done. Running the testcase now
2025-05-01 02:25:05,429 - INFO -
2025-05-01 02:25:05,931 - DEBUG - Response for create_network : {'network': {'id': '7ab19863-82be-48a1-9700-c82522b1f5b5', 'name': 'ctest-vn-02855474', 'tenant_id': '5685461239344b9e92726c9d34c4065e', 'project_id': '5685461239344b9e92726c9d34c4065e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-vn-02855474'], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:25:06,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'deab2b20-1682-480e-834b-5411c37af4ac', 'name': '', 'tenant_id': '5685461239344b9e92726c9d34c4065e', 'network_id': '7ab19863-82be-48a1-9700-c82522b1f5b5', 'ip_version': 4, 'cidr': '67.110.246.192/26', 'allocation_pools': [{'start': '67.110.246.194', 'end': '67.110.246.254'}], 'gateway_ip': '67.110.246.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.110.246.194', 'tags': [], 'project_id': '5685461239344b9e92726c9d34c4065e'}}
2025-05-01 02:25:06,090 - INFO - Created VN ctest-vn-02855474
2025-05-01 02:25:06,143 - DEBUG - VN ctest-vn-02855474 UUID is 7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:06,450 - DEBUG - Response for create_network : {'network': {'id': 'd9164a89-9714-4ddb-87ea-284eb112232f', 'name': 'ctest-vn-43904055', 'tenant_id': '5685461239344b9e92726c9d34c4065e', 'project_id': '5685461239344b9e92726c9d34c4065e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-vn-43904055'], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:25:06,638 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8b48624-a104-4ca7-8d40-e801d53bd7ee', 'name': '', 'tenant_id': '5685461239344b9e92726c9d34c4065e', 'network_id': 'd9164a89-9714-4ddb-87ea-284eb112232f', 'ip_version': 4, 'cidr': '13.225.97.64/26', 'allocation_pools': [{'start': '13.225.97.66', 'end': '13.225.97.126'}], 'gateway_ip': '13.225.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.225.97.66', 'tags': [], 'project_id': '5685461239344b9e92726c9d34c4065e'}}
2025-05-01 02:25:06,653 - INFO - Created VN ctest-vn-43904055
2025-05-01 02:25:06,703 - DEBUG - VN ctest-vn-43904055 UUID is d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:06,851 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-02855474, 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-84556734:ctest-vn-43904055, 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]
2025-05-01 02:25:07,157 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ab19863-82be-48a1-9700-c82522b1f5b5', 'name': 'ctest-vn-02855474', 'tenant_id': '5685461239344b9e92726c9d34c4065e', 'project_id': '5685461239344b9e92726c9d34c4065e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['deab2b20-1682-480e-834b-5411c37af4ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-vn-02855474'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-policy-allow-all-49274874']], 'subnet_ipam': [{'subnet_cidr': '67.110.246.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:25:07,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9164a89-9714-4ddb-87ea-284eb112232f', 'name': 'ctest-vn-43904055', 'tenant_id': '5685461239344b9e92726c9d34c4065e', 'project_id': '5685461239344b9e92726c9d34c4065e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8b48624-a104-4ca7-8d40-e801d53bd7ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-vn-43904055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-policy-allow-all-49274874']], 'subnet_ipam': [{'subnet_cidr': '13.225.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-01 02:25:07,571 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-01 02:25:07,864 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-01 02:25:07,888 - DEBUG - Requesting: http://10.0.0.254:8082/domain/231317f3-e5ea-40b2-aa89-719a5c8f7730
2025-05-01 02:25:07,901 - DEBUG - Requesting: http://10.0.0.254:8082/project/56854612-3934-4b9e-9272-6c9d34c4065e
2025-05-01 02:25:07,969 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:07,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:07,986 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0309c0a5-7d28-4550-b179-a4e230f02971
2025-05-01 02:25:07,992 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0309c0a5-7d28-4550-b179-a4e230f02971
2025-05-01 02:25:07,998 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9f34b473-0f54-44a1-98c2-0232a380132e
2025-05-01 02:25:08,005 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-01 02:25:08,005 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:08,019 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0309c0a5-7d28-4550-b179-a4e230f02971
2025-05-01 02:25:08,031 - INFO - Verified VN network id 8 for VN 7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:08,031 - INFO - Verifications in API Server for VN ctest-vn-02855474 passed
2025-05-01 02:25:08,031 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:08,041 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0309c0a5-7d28-4550-b179-a4e230f02971
2025-05-01 02:25:08,048 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0309c0a5-7d28-4550-b179-a4e230f02971
2025-05-01 02:25:08,053 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9f34b473-0f54-44a1-98c2-0232a380132e
2025-05-01 02:25:08,064 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-02855474', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84556734', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8841015096667687073', 'uuid-lslong': '10880916761548551605'}, 'enable': 'true', 'created': '2025-05-01T02:25:05', 'last-modified': '2025-05-01T02:25:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930602'}
2025-05-01 02:25:08,070 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-01 02:25:08,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02855474 passed
2025-05-01 02:25:08,070 - DEBUG - ====Verifying policy data for ctest-vn-02855474 in API_Server ======
2025-05-01 02:25:08,070 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-01 02:25:08,076 - DEBUG - Requesting: http://10.0.0.254:8082/domain/231317f3-e5ea-40b2-aa89-719a5c8f7730
2025-05-01 02:25:08,087 - DEBUG - Requesting: http://10.0.0.254:8082/project/56854612-3934-4b9e-9272-6c9d34c4065e
2025-05-01 02:25:08,158 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ab19863-82be-48a1-9700-c82522b1f5b5
2025-05-01 02:25:08,167 - DEBUG - ==>Verifying data for policy with id: 3c2d19b6-f9d1-4439-80b8-888b2e6191bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-policy-allow-all-49274874']
2025-05-01 02:25:08,167 - INFO - VN ctest-vn-02855474 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-01 02:25:08,167 - DEBUG - Verifying the vn in opserver
2025-05-01 02:25:08,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-02855474 virtual network link through opserver 10.0.0.254
2025-05-01 02:25:08,167 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-01 02:25:08,452 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-01 02:25:08,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-02855474', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-02855474?flat'}
2025-05-01 02:25:08,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-02855474 is found in opserver
2025-05-01 02:25:08,507 - DEBUG - Do not have enough data to verify VN in agent
2025-05-01 02:25:08,511 - DEBUG - VRF ids for VN ctest-vn-02855474: {}
2025-05-01 02:25:08,511 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-01 02:25:08,517 - DEBUG - Requesting: http://10.0.0.254:8082/domain/231317f3-e5ea-40b2-aa89-719a5c8f7730
2025-05-01 02:25:08,526 - DEBUG - Requesting: http://10.0.0.254:8082/project/56854612-3934-4b9e-9272-6c9d34c4065e
2025-05-01 02:25:08,592 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:08,603 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:08,612 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10e94df2-d72d-40b6-8e0c-adcfbfecf1a8
2025-05-01 02:25:08,618 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10e94df2-d72d-40b6-8e0c-adcfbfecf1a8
2025-05-01 02:25:08,624 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4f55cc84-506d-4700-9fc6-a1df60d59d7e
2025-05-01 02:25:08,629 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-01 02:25:08,629 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:08,637 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10e94df2-d72d-40b6-8e0c-adcfbfecf1a8
2025-05-01 02:25:08,649 - INFO - Verified VN network id 9 for VN d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:08,649 - INFO - Verifications in API Server for VN ctest-vn-43904055 passed
2025-05-01 02:25:08,649 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:08,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10e94df2-d72d-40b6-8e0c-adcfbfecf1a8
2025-05-01 02:25:08,663 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/10e94df2-d72d-40b6-8e0c-adcfbfecf1a8
2025-05-01 02:25:08,670 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4f55cc84-506d-4700-9fc6-a1df60d59d7e
2025-05-01 02:25:08,680 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-43904055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84556734', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15642772310523661787', 'uuid-lslong': '9793684658113880879'}, 'enable': 'true', 'created': '2025-05-01T02:25:06', 'last-modified': '2025-05-01T02:25:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327352'}
2025-05-01 02:25:08,686 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-01 02:25:08,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43904055 passed
2025-05-01 02:25:08,686 - DEBUG - ====Verifying policy data for ctest-vn-43904055 in API_Server ======
2025-05-01 02:25:08,686 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-01 02:25:08,690 - DEBUG - Requesting: http://10.0.0.254:8082/domain/231317f3-e5ea-40b2-aa89-719a5c8f7730
2025-05-01 02:25:08,700 - DEBUG - Requesting: http://10.0.0.254:8082/project/56854612-3934-4b9e-9272-6c9d34c4065e
2025-05-01 02:25:08,770 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9164a89-9714-4ddb-87ea-284eb112232f
2025-05-01 02:25:08,781 - DEBUG - ==>Verifying data for policy with id: 3c2d19b6-f9d1-4439-80b8-888b2e6191bd, fqn: ['default-domain', 'ctest-TestBasicPolicy-84556734', 'ctest-policy-allow-all-49274874']
2025-05-01 02:25:08,781 - INFO - VN ctest-vn-43904055 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-01 02:25:08,781 - DEBUG - Verifying the vn in opserver
2025-05-01 02:25:08,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-43904055 virtual network link through opserver 10.0.0.254
2025-05-01 02:25:08,781 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-01 02:25:08,790 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-43904055', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-43904055?flat'}
2025-05-01 02:25:08,790 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84556734:ctest-vn-43904055 is found in opserver
2025-05-01 02:25:08,799 - DEBUG - Do not have enough data to verify VN in agent
2025-05-01 02:25:08,804 - DEBUG - VRF ids for VN ctest-vn-43904055: {}
2025-05-01 02:25:08,854 - DEBUG - Services list from nova: [